[英]What does “{% %}” syntax mean?
I'm using someones PHP file. 我正在使用某人的PHP文件。 And it has text like: 它的文本如下:
<html>
... regular HTML
{% if (some condition){
<another regular html tag>
</another regular html tag>
}%}
</html>
And I don't get it if these {% tags %} are javascript or PHP, or something else? 如果这些{%标签%}是javascript或PHP,还是其他东西,我不明白吗? thx. 谢谢。
It is some templating language. 这是一些模板语言。 Most likely a server-side one, ie one that is based on PHP. 最有可能是服务器端的,即基于PHP的服务器端。
Looks like a template to me. 在我看来像是模板。 The {%
and %}
is the templating's system of identifying where it has to do its work. {%
和%}
是确定其必须在何处进行工作的模板系统。
It can think of two reasons: 它可以想到两个原因:
User might have changed "<?" to "<%"
用户可能已更改"<?" to "<%"
"<?" to "<%"
It is a template language 这是一种模板语言
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.