Макрос с if
This commit is contained in:
parent
60ce4b958f
commit
b0c0f787c8
1 changed files with 1 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ class Klein {
|
||||||
["{% endfor %}", "endforeach;"],
|
["{% endfor %}", "endforeach;"],
|
||||||
["{% ifset+:var %}", "if(isset(#1s)):"],
|
["{% ifset+:var %}", "if(isset(#1s)):"],
|
||||||
["{% if+:var %}", "if(isset(#1s) && #1s):"],
|
["{% if+:var %}", "if(isset(#1s) && #1s):"],
|
||||||
|
["{% if+:id \(( :var (, :var )*)?\) %}", "if(macro_#1(#2s)):"],
|
||||||
["{% unless+:var %}", "if(!(isset(#1s) && #1s)):"],
|
["{% unless+:var %}", "if(!(isset(#1s) && #1s)):"],
|
||||||
["{% else %}", "else:"],
|
["{% else %}", "else:"],
|
||||||
["{% endif %}", "endif;"],
|
["{% endif %}", "endif;"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue