summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-09-23 22:24:16 +0200
committerKevin Chabowski <kevin@kch42.de>2011-09-23 22:24:16 +0200
commit1619126d7d87538082dd58645a37f528adb1deeb (patch)
tree33a96610937ca591fa5bcac5aef556b8b2300c02 /example
parentbc0ea34989618d8747076c322c14d0cd6af591b2 (diff)
downloadste-1619126d7d87538082dd58645a37f528adb1deeb.tar.gz
ste-1619126d7d87538082dd58645a37f528adb1deeb.tar.bz2
ste-1619126d7d87538082dd58645a37f528adb1deeb.zip
Added short syntag for comparison.
~{a|op|b} Also updated the documentation and made unescape_text() a alias of PHP's stripcslashes().
Diffstat (limited to 'example')
-rw-r--r--example/templates/src/articles.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/templates/src/articles.html b/example/templates/src/articles.html
index e007f3e..c0db692 100644
--- a/example/templates/src/articles.html
+++ b/example/templates/src/articles.html
@@ -24,7 +24,7 @@
<ste:comment>There are more than 3 articles?</ste:comment>
<ste:set var="articles_n"><ste:arraylen array="articles" /></ste:set>
<ste:if>
- <ste:cmp var_a="articles_n" op="gt" text_b="3" />
+ ~{$articles_n|gt|3}
<ste:then>
<p>There are <a href="#">more articles</a>.</p>
</ste:then>