Try inlining simple template definitions
Instead of generating a class for each template, some simple (wrapping) templates can be inlined in the generated code.Submitted by Elmer van Chastelet on 12 May 2014 at 11:37
From svn log r5899
inline simple wrapper templates such as div, span, gridRow, navbarFluid, pullLeft, iArrowDown inlineable templates are detected automatically based on a whitelist of inlineable components (e.g. html tags and elements() call)
The changeset seems to cause an issue with local template overrides.
When an overridden template (read: the global def) is inlineable, the global definition is inlined and the overridden template is not invoked, where it should.
Another issue is when attributes are changed/added after the first compilation. For example, when I add
[class="highlighted"]to a template call to an inline-able template, it does not add that attribute in the second build.
Log in to post comments