Public Member Functions | |
| __construct ($template, $folders=null, $cache=null) | |
| render ($c=null) | |
| getCompiledTemplateName () | |
| write ($name) | |
Static Public Member Functions | |
| static | markSafe ($string) |
Public Attributes | |
| $tpl = '' | |
| $folders = array() | |
| $cache = '' | |
| $compiled_template = '' | |
| $template_content = '' | |
| $context = null | |
| $class = '' | |
| Pluf_Template::__construct | ( | $ | template, | |
| $ | folders = null, |
|||
| $ | cache = null | |||
| ) |
| Pluf_Template::render | ( | $ | c = null |
) |
Render the template with the given context and return the content.
| Object | Context. |
| Pluf_Template::getCompiledTemplateName | ( | ) |
Get the full name of the compiled template.
Ends with .phps to prevent execution from outside if the cache folder is not secured but to still have the syntax higlightings by the tools for debugging.
| Pluf_Template::write | ( | $ | name | ) |
Write the compiled template in the cache folder. Throw an exception if it cannot write it.
| static Pluf_Template::markSafe | ( | $ | string | ) | [static] |
| Pluf_Template::$tpl = '' |
| Pluf_Template::$folders = array() |
| Pluf_Template::$cache = '' |
| Pluf_Template::$compiled_template = '' |
| Pluf_Template::$template_content = '' |
| Pluf_Template::$context = null |
| Pluf_Template::$class = '' |