necrodeus
necrodeus

Reputation: 134

PHP: What templating language utilizes <%= variable %>

In similar posts, I've seen Django mentioned, but it uses curly brackets and not <>

I have a variable that is displaying numbers like:

10.0000

I am trying to get it to display the equivalent of number_format() in PHP - but I don't know what language this is to achieve it.

<%= number_format(variable,2); %>

was not successful. Nothing in the error logs saying why/what was wrong, the page just broke.

For reference, when I view the source code of the page I see this code raw, it doesn't obfuscate like PHP does.

Upvotes: 0

Views: 115

Answers (3)

necrodeus
necrodeus

Reputation: 134

It's http://www.embeddedjs.com/ thanks to jade template tag bracket percentage definition

I originally missed this thread as stackoverflow doesn't recognize <% as a search term. Located the thread via searx.

Upvotes: 1

D Lowther
D Lowther

Reputation: 1619

Could be twig as mentioned above, is the common .erb syntax in ruby.

Upvotes: 0

NiloVelez
NiloVelez

Reputation: 3659

Might be Twig, it's a templating engine for PHP.

It supports the <% %> syntax and has the number_format() function

http://twig.sensiolabs.org/

Upvotes: 0

Related Questions