Thursday 15 May 2014

php - mustache: insert a string literal into a template filter -



php - mustache: insert a string literal into a template filter -

i next (it template rendered php mustache version):

<h1>{{hello|my_filter}}</h1>

where hello literal string, not variable name.

how can it?

finally i've done following:

<h1>{{#my_filter}}hello{{/my_filter}}</h1>

php mustache

No comments:

Post a Comment