Interface

TemplateRenderer

Package: IO\Template\renderer Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2014 12 22 Since: PHPBoost 3.0 - 2010 02 06 Located at: io/template/renderer/TemplateRenderer.class.php

Represents a template renderer as its names shows. Its able to get the result of the template interpration from a TemplateLoader which gives it the template source and a TemplateData which contains the data to assign in the template.

Direct known implementers
DefaultTemplateRenderer
Methods summary
public string
# render( TemplateData $data, TemplateLoader $loader )

Returns the result of the interpretation of a template

public
# add_lang( array $lang )

Adds a lang map to the template map list in which template variables beginning by L_ will be searched for of not already registered