summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Implemented autoescapingKevin Chabowski2015-04-13
| | | | Still needs some cleanup and documentation.
* Refined test_closureKevin Chabowski2014-05-24
|
* Added ste:setlocal and refined test_scope.Kevin Chabowski2014-05-24
|
* Simple autoloader for examples and tests.Kevin Chabowski2014-05-24
|
* Added scoping.Kevin Chabowski2014-05-24
| | | | | | | | | | | | | | | ste:mktag generated tags now have an own scope. They even resemble closures, since they inherit their parent scope. A lot of work was done to keep this compatible with older programs. However: * Templates that relied on the non-scoping behavior of tags will probably fail. * Since $ste->vars is no longer an actual array, things like $ste->vars["foo"]["bar"] = "baz" are no longer possible! A single field access will still work: $ste->vars["foo"] = "bar"
* Fixed ste:getKevin Chabowski2014-05-24
| | | | | | Didn't work at all before. The varname was not passed correctly. Also added the test case that showed this.
* ste:foreach now has an else clause for empty arrays.Kevin Chabowski2013-10-28
|
* Fixed wrong include paths.Kevin Chabowski2013-10-28
|
* New Testparser2Kevin Chabowski2013-10-25
|
* short cmp tags can now contain tags.Kevin Chabowski2013-10-25
| | | | | | | | To accomplish this, tag parameters can now be compiled, even if they contain tags (the parser still doesn't allow this, but the compiler can now handle this situation). Also reformatted the code.
* Made the tests more tolerant for whitespace.Kevin Chabowski2013-10-25
|
* Added some tests.Kevin Chabowski2013-10-23
| | | | | | Many of these break. Mostly because the way whitespace/newlines are added (or not added). This is terribly broken ATM... (It was okay with the old parser, I'll try to replicate that behaviour)
* Added some testsKevin Chabowski2013-10-23