如何在 Mustache 中实现嵌套函数调用模板?
How to implement nested function calls template in Mustache?
我想要这样的行为
{{md5(sha1(base64Encoding({{someValue}})))}}
{{sha1(base64Encoding({{someValue}}))}}
我可以使用小胡子实现这种行为吗?
不,Mustache 是一个 logic-less 模板引擎。
您将必须在代码中进行这些哈希计算,并在 Mustache 中使用结果。
我想要这样的行为
{{md5(sha1(base64Encoding({{someValue}})))}}
{{sha1(base64Encoding({{someValue}}))}}
我可以使用小胡子实现这种行为吗?
不,Mustache 是一个 logic-less 模板引擎。 您将必须在代码中进行这些哈希计算,并在 Mustache 中使用结果。