-
Notifications
You must be signed in to change notification settings - Fork 16
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
loading and rendering partials from template? #7
Comments
I didn't add support for automatic partial load, you need to pass it as second argument to the template method. picsTpl(data, { picsList : picsListTemplate }); It's definitely doable but not implemented on this plugin, would need some sort of convention (how partials should be looked up?). The handlebars plugin supports this feature. Will keep this issue open as a feature request but not sure when I will have time to implement it. Thanks. |
Thanks :) picsTpl(data, { picsList : picsListTemplate }); |
Sorry millermedeiros; I get an error line 71
and only picsTpl is generated var dTpl = picsTpl(data,{
picsList: picsListTpl
}); if I do this it generates the partial but without the data var dTpl = picsTpl(data,{
picsList: picsListTpl()
}); if I merge the partial back the template generates fine.. |
ahhh, of course! the partial is a function! I forgot about it... try this: picsTpl(data, { picsList : picsListTemplate.template }); |
Thanks that worked 👍 |
How do you get requirejs hogan plugin to dynamically request load the partials?
Here is a quick example what I mean which doesn't seem to load in picsList
pics.mustache
picsList.mustache
Thanks
The text was updated successfully, but these errors were encountered: