Open kumarshantanu opened 11 years ago
(Note: This is complex for the user. See #9 directives as an alternative.)
Implement nesting as follows:
<%#
%>
<%%
<%/
Notes:
<%..%>
For the mustache template below
{{#items}} {{#first}} <li><strong>{{name}}</strong></li> {{/first}} {{#link}} <li><a href="{{url}}">{{name}}</a></li> {{/link}} {{/items}}
the equivalent Basil template would look like as follows:
<%# (in items ; explodes each element in 'items', concats all form results (in first %> <li><strong><%name%></strong></li><%% ) (in link %> <li><a href="<%url%>"><%name%></a></li><%/ )) %>
(Note: This is complex for the user. See #9 directives as an alternative.)
Implement nesting as follows:
<%#
%>
<%%
%>
<%/
%>
Notes:
<%..%>
slots are to be compiled as-it-is.For the mustache template below
the equivalent Basil template would look like as follows: