I'm using someones PHP file. 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? thx.
It is some templating language. Most likely a server-side one, ie one that is based on 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 "<%"
It is a template language
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.