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

On 12 May 2014 at 11:37 Elmer van Chastelet tagged @dannygroenewegen

On 12 May 2014 at 11:40 Elmer van Chastelet commented:

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)

On 12 May 2014 at 11:42 Elmer van Chastelet commented:

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.


On 19 May 2014 at 12:16 Elmer van Chastelet commented:

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