我正在使用某人的 PHP 文件。 它有这样的文字:
<html>
... regular HTML
{% if (some condition){
<another regular html tag>
</another regular html tag>
}%}
</html>
我不明白这些 {% tag %} 是 javascript 还是 PHP,还是其他什么? 谢谢。
最佳答案
这是某种模板语言。最有可能是服务器端的,即基于 PHP 的。
关于php - "{% %}"语法是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10262195/