确定应用程序正在使用的服务器端模板

Determine what server side template an application is using

我记得服务器端模板引擎将 {{! anything}} 呈现为 true

我猜它是这样呈现的,因为 anything 是一个未定义的变量。没有多少模板引擎这样做。例如,in mustache {{! anything }} 只是一个注释。

其他内容呈现为:

{{ 1+1 }} --> 2

{{if 1==2}} yes {{else}} no {{end}} --> 没有

这不是 GO 模板。

我想使用那个模板,但我记不起名字了。有谁知道做同样事情的模板吗?

谢谢!

我觉得这很像 Go 的模板。

Apache Velocity 的风格略有不同,但可能会为您提供类似的功能。

AngularJS 也使用双括号模板样式。

它似乎是一个 Tangular 模板:https://github.com/totaljs/Tangular

Tangular 可以与 node.js 一起用作服务器端模板引擎