Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide access to parent sections #25

Open
meetingcpp opened this issue Feb 28, 2017 · 3 comments
Open

Provide access to parent sections #25

meetingcpp opened this issue Feb 28, 2017 · 3 comments
Assignees

Comments

@meetingcpp
Copy link

Basically I'd like boostache to implement this feature from handlebars.js

Currently this leads to a silent error (I don't see an exception, not error logging), only text until the section is printed.

@mjcaisse mjcaisse self-assigned this Feb 28, 2017
@mjcaisse
Copy link
Member

I'm refactoring how the "context" portion works to allow moving back up the data model tree. This is required to properly fix this disabled test: collections2 test

The data (as json) looks like:

{
   "me" :  "Daniel",
    "people" : [ { "name" : "Tom",
                           "job"    : "sweep floors" },
                         {"name" : "Sue",
                           "job"     :"write code"}  ]
}

and the template looks like:

Hi I am {{me}}.
{{# people}}Hi {{me}}, I am {{name}}, I {{job}}.
{{/ people}}

The {{me}} will come from the top context.

@meetingcpp
Copy link
Author

Great :)

@meetingcpp
Copy link
Author

meetingcpp commented Sep 5, 2017

In which branch does that work?
Would be rather handy to have that...

The newest branch leads only to the out put of: "generic compile for : N5boost9boostache8frontend6stache3ast4rootE"

What is the minimum GCC Version required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants