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

Lazy Partials #13

Open
remko opened this issue Aug 13, 2016 · 1 comment
Open

Lazy Partials #13

remko opened this issue Aug 13, 2016 · 1 comment

Comments

@remko
Copy link

remko commented Aug 13, 2016

Right now, partials need to be passed as a map<string, string>. This means partials need to be read up front, which can be a heavy task if there are lots of potential partials that can be used by the template (as this isn't known upfront).

It would be handy if partials would be read lazily, e.g. by passing an map<string, lambda> instead of a map<string, string>.

@KingDuckZ
Copy link

From the mustache docs I understand that {{> test}} should try to open a file called test.mustache, at least by default. I'm not sure if I can set some search paths in mstch, or if this behaviour is there at all. Apparently not?

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