胡子:将字符串文字插入到模板过滤器中


mustache: insert a string literal into a template filter

我想做以下事情(这是php胡子版本渲染的模板):

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

其中,hello是文字字符串,而不是变量名。

我该怎么做?

最后我完成了以下操作:

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