| $#! | |
| __construct | |
| B | |
| $ | blockorder, STECore |
| $ | blocks, STECore |
| C | |
| call_tag, STECore | |
| Constants, ste | |
| E | |
| evalbool, STECore | |
| exectemplate, STECore | |
| F | |
| FilesystemStorageAccess | |
| Functions | |
| G | |
| get_var_by_name, STECore | |
| get_var_reference, STECore | |
| L | |
| License | |
| load | |
| M | |
| MODE_SOURCE, ste | |
| MODE_TRANSCOMPILED, ste | |
| P | |
| parse, ste | |
| Public variables, STECore | |
| R | |
| register_tag, STECore | |
| S | |
| save, StorageAccess | |
| ste | |
| STECore | |
| StorageAccess | |
| stupid_template_engine.php | |
| T | |
| Template modes, ste | |
| transcompile, ste | |
| V | |
| Variables, STECore | |
| $ | vars, STECore |
public function __construct( $src, $transc )
public function __construct( $storage_access )
Calling a custom tag (builtin ones can not be called)
public function call_tag( $name, $params, $sub )
Test, if a text represents false (an empty / only whitespace text) or true (everything else).
public function evalbool( $txt )
Executes a template and returns the result.
public function exectemplate( $tpl )
Get a template variable by its name.
public function get_var_by_name( $name )
Get a reference to a template variable using a variable name.
public function &get_var_reference( $name, $create_if_not_exist )
Load a template and return its result (blocks not included, use exectemplate for this).
public function load( $tpl, $quiet = False )
Loading a template.
public function load( $tpl, & $mode )
Parsing a STE T/PL template.
function parse( $code )
Register a custom tag.
public function register_tag( $name, $callback )
Saves a template.
public function save( $tpl, $data, $mode )
Transcompiles an abstract syntax tree to PHP.
function transcompile( $ast ) /* Transcompile and add some boilerplate code. */