| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
Let's face it, no one but my CMS Ratatöskr (r7r for short) uses this
template engine anyway. Also it's a good excuse to get rid of more
remnants of my old kch42 nickname.
|
|
|
|
|
| |
It's both offensive and kinda inaccurate in this context, so let's replace
it!
|
|
|
|
| |
We can use it now that we switched to PHP 7.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This switches the code documentation genarator (we're now using phpdoc
instead of NaturalDoc).
Also various small code cleanup tasks:
- Remove unused code
- Get rid of `and` / `or`, we're using `&&` / `||` now
- Adding missing return values
- Helping PhpStorm to detect some dynamically called functions
(mark_builtin_callable in Transcompiler)
- Reword transcompiling => compiling in documentation
|
|
|
|
| |
Also add git hooks that checks formatting
|
|
|
|
|
|
| |
- Expand tabs into spaces
- Remove trailing whitespace
- Get rid of closing `?>` tags
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* ste:in_array checks, if a value is in an array
* ste:join joins an array with a glue string
* ste:split splits a string with a delimiter to an array
* ste:array_add adds an element to an array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* The exceptions RuntimeError, FatalRuntimeError, CantLoadTemplate and
CantSaveTemplate were introduced.
* RuntimeErrors are automatically catched by the template engine and
will be displayed instead of the tag, unless the parameter
$mute_runtime_errors was set to true.
* Missing tags will result either in a RuntimeError or, if
$fatal_error_on_missing_tag is true, in a FatalRuntimeError.
* The mktag-subcompiler and the standard library functions now use the
new exceptions.
* A bug, that threw away leading TextNodes if a comment or rawtext
pseudotag was parsed, is now fixed.
|
|
|
|
|
|
|
|
| |
* ste:get allows us to get a variable's content dynamically.
* (') was escaped for TextNodes, which resulted to:
\'
should have been:
'
|
|
|
|
|
|
|
| |
Because strftime is more flexible: You can...
* ...put arbitrary text inside the format
* ...manipulate it by set the locale (i.e. set language-specific month
names etc.)
|
|
|
|
|
|
| |
~{a|op|b}
Also updated the documentation and made unescape_text() a alias of
PHP's stripcslashes().
|
|
|