You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to just get the template informations mu2 uses? Just resolve the partials and don't render any data to the template (and don't replace other mustache tags except partials)
Use case: Use the same templates on client and server. I have to find a way to deliver a partial free version of the templates to the client.
The text was updated successfully, but these errors were encountered:
Because partials can be recursive, you cannot expand the partial tags at compile time in Mustache. What Mu does is compile all the needed partials at compile time and references them in the cache during render time.
Most client side Mustaches have a form of partials as well, I would try to figure out a way to send those down apart from the main template. Would having an easily accessible list of partial files that a template references be helpful? Something like: mu.whichPartials(compiledTemplateOrPath); // => ["foo.html", "bar.html"]
Hey,
Is there a way to just get the template informations mu2 uses? Just resolve the partials and don't render any data to the template (and don't replace other mustache tags except partials)
Use case: Use the same templates on client and server. I have to find a way to deliver a partial free version of the templates to the client.
The text was updated successfully, but these errors were encountered: