Search code examples
template-engine

Determine what server side template an application is using


I remember a server side template engine that renders {{! anything}} as true

I guess it renders like that because anything is an undefined variable. Not many template engines do that. For example, in mustache {{! anything }} is just a comment.

Other things get rendered as:

{{ 1+1 }} --> 2

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

It's not GO template.

I would like to use that template, but I can't remember the name. Does anyone know a template that does the same thing?

Thanks!


Solution

  • It seems like a Tangular template: https://github.com/totaljs/Tangular

    Tangular can be used with node.js as a server side template engine