Template Lite - the faster compiling PHP template engine
Custom Compiler Functions
Description
The debug function displays the debug console either to a popup window through javascript or appends the console to the end of the template file being displayed. This works regardless of the debugging setting. Since this gets executed at runtime it will only display the assigned variables for the template file being processed.
Arguments
- output (optional)
Display as either html or javascript popup window. Default = javascript
Example
EXAMPLE
=============================
{* Display Debug Console as javascript popup window *}
{ debug }
{* Append Debug Console to the end of the displayed page as HTML *}
{debug output=html}
Description
Inserts PHP code into the compiled template to display the name of the template file and the date it was compiled.
Example
EXAMPLE PHP CODE INSERTED
=============================
echo '" . $tpl->_file . " compiled at " . date('Y-m-d H:M'). "';
EXAMPLE DISPLAY
=============================
mytemplate.tpl compiled at 2006-04-14 10:34
Home