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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -