provide better layout support for Mustache
Mustache has no way to define/export variables or fragments right now, so the usual layout way doesn't work too well.
See this discussion: http://groups.google.com/group/scalate/browse_thread/thread/f74e1d7fd130661b
maybe we can have a special attribute "html" which lets you navigate the generated HTML document of the template and pull out elements based on their element name / attribute name or _ for all children.
See this discussion: http://groups.google.com/group/scalate/browse_thread/thread/f74e1d7fd130661b
maybe we can have a special attribute "html" which lets you navigate the generated HTML document of the template and pull out elements based on their element name / attribute name or _ for all children.
Leave a comment
on 2011-01-17 10:25 *
By jstrachan
Description changed from Not sure if this goes again... to Mustache has no way to defi...
Milestone changed from Someday to 1.4
Summary changed from provide better layout support for Mustache? e.g. how to specify what layouts to use? to provide better layout support for Mustache
(In revision:ec981338c067fcf37106fb5f3bdf2fa8c4e458ca) fixes #122 to allow Mustache templates to layout generated HTML by navigating the 'html' variable to access the head / title or body content.
Branch: master
Branch: master