NAME
App::Widget::Template - An HTML widget built from a template, rendered by a TemplateEngine
SYNOPSIS
use App::Widget::Template;
Attributes
templateEngine - The name of the TemplateEngine service that will do the
rendering. If not given, the name "default" will be used.
templateName - The name of the template that should be rendered.
If not given, the widget name is changed to a template
name by changing dots (".") to slashes ("/") and
appending ".html".
Public Methods
html()
* Signature: $html = $w->html();
* Param: void
* Return: $html text
* Throws: App::Blue::Exception
* Since: 0.01
Sample Usage:
print $w->html();
The html() method returns the HTML output of the Template as rendered through its TemplateEngine.
Note: By using the App::Widget::Template, the developer or deployer is guaranteeing that the output of the template will be valid HTML. If this is not the case, perhaps the App::Widget::Template is the correct widget class to use instead.