0
我最近看到一个HTML页面。代码嵌入了花括号。标签和循环的值由花括号关闭。带花括号的HTML代码
{% if authenticated %}
<h1>Current User</h1>
<p>{{user}}</p>
{% else %}
<h1>Current User</h1>
<p>None</p>
{% endif %}
什么actaul使用这些类型的代码?
HTML是否嵌入了任何其他语言?
这是一个模板系统就像嫩枝:http://twig.sensiolabs.org/ – patricksweeney
可能重复:http://stackoverflow.com/questions/15279240/curly-brackets-in-html – Jay
可能重复的[HTML中的花括号和百分号的含义是什么?](http://stackoverflow.com/questions/14887579/what-dose-the-curly-brace-and-percent-sign-mean-in-html) – ajm