Skip to content

tild extensions

Duzy Chan edited this page Jul 10, 2019 · 3 revisions

#Tild Extensions

Extends the [mustache][] template with the tild syntax (e.g. {{~}}).

The tild syntax

Example

{{#ITEMS}}
Item {{NAME}}{{~ !last : {, }}}
{{/ITEMS}}

{{~ "1".."3" ~}}
Num #{{~_}}
{{~}}

Expected Outputs:

Item a,
Item b,
Item c

Num #1
Num #2
Num #3

TODO: to be continued if possible...

Clone this wiki locally