diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-01-15 13:04:03 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-01-15 13:04:03 +0100 |
commit | 8e35fad33de1fbecea7c29776f7afab6a4b88a48 (patch) | |
tree | 45140f6f610cc0481e5c6b0bc0eb932578bad972 /example/index.php | |
parent | 7807fca367008ceaa8ff1b5a1b7f040520ee1cad (diff) | |
download | ste-8e35fad33de1fbecea7c29776f7afab6a4b88a48.tar.gz ste-8e35fad33de1fbecea7c29776f7afab6a4b88a48.tar.bz2 ste-8e35fad33de1fbecea7c29776f7afab6a4b88a48.zip |
Added builtin ste:get and fixed a code generation bug.
* ste:get allows us to get a variable's content dynamically.
* (') was escaped for TextNodes, which resulted to:
\'
should have been:
'
Diffstat (limited to 'example/index.php')
-rw-r--r-- | example/index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/index.php b/example/index.php index 3d2b1ca..14ca576 100644 --- a/example/index.php +++ b/example/index.php @@ -52,6 +52,10 @@ $ste->vars["articles"] = array( array("author" => "baz", "title" => "whatever...", "timestamp" => 1316550000, "excerpt" => "...", "full" => "..........") ); +$ste->vars["foo"] = "baz"; +$ste->vars["bar"] = "lol"; +$ste->vars["baz"] = array("lol" => "cool"); + # Execute the template and output the result echo $ste->exectemplate("articles.html"); |