Mini mustache template engine.
$ component install chemzqm/minstache
{name}
no convert for single brackets.{{name}}
for escape attribute.{{!name}}
should not escapename
.{{#admin}}admin{{/admin}}
render admin ifadmin
.{{^authenticated}}login{{/authenticated}}
render login if notauthenticated
.{{name.frist}}
renderfirst
attribute ofname
.{{#contacts}}<li>{{name}}</li>{{/contacts}}
rendername
s of each contacts.
Compile and render the given mustache string
with optional context obj
.
Compile the mustache string
to a stand-alone Function
accepting a context obj
.
MIT