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

Partials loose context variables #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Ptico
Copy link
Contributor

@Ptico Ptico commented Jan 20, 2015

All, or at least almost all mustache implementations supports context variables inheritance:

{{#names}}
  {{> user}}
{{/names}}

user.mustache:
<strong>{{name}}</strong>

but it doesn't work here. Any ideas why?

@haio
Copy link
Owner

haio commented Feb 5, 2015

The current implement expects specify data for every page(partial), when read the partial page, it will do a precompile partial with the data in the same path.
Maybe this feature can be available later.

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

Successfully merging this pull request may close these issues.

2 participants