| Commit message (Collapse) | Author | Age |
| | |
|
| | |
|
| |
|
|
| |
Fixed tests to use the new apis
|
| |
|
|
|
|
| |
If a loop was defined in the template, but no loop was defined
in the varlist, render() would infinite loop while trying to
execute. Fixs that.
|
| |
|
|
| |
Fixed a bug where rendering a template multiple times would fail.
|
| | |
|
| |
|
|
|
| |
Added a break statement that can break out of loops, also added
some tests to test the functionality of the same.
|
| |
|
|
| |
Added more system tests for loop breaking
|
| |
|
|
|
|
| |
Sill needs some more tests, like: make sure variable scoping is
still correct after breaking out of a loop, how about multiple
loops?
|
| |
|
|
| |
Added a break statement that can break out of loops.
|
| |
|
|
|
|
| |
Allow bstringify (and therefore TMPL_render()) to accept NULL
as the size. When NULL is passed as the size, the size of the
resulting string is not stored anywhere.
|
| |
|
|
| |
Added another test case to the test file.
|
| |
|
|
| |
Added a few more tests.
|
| |
|
|
|
| |
Elseif now works exactly like if, where it will check for the
existance of a variable if it does not have a value field.
|
| |
|
|
|
| |
Fixed a bug where the <TMPL_IF> tag was not correctly checking if a
variable exists if it does not have a "testval" attribute.
|
|
|
Added some tests for good input.
Also fixed a bug where an empty loop would crash.
|