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


I would like to do the following (this is a template given by a PHP mustache version):

 < Code> & lt; H1 & gt; {{Hello | My_filter}} & lt; / H1>   

Where Hello is a verb string, not a variable name.

How can I do this?

Finally I did the following:

  & lt; H1 & gt; {{# My_filter}} Hello {{/ my_filter}} & lt; / H1>    

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -