NAME

App::TemplateServer::Provider - role that a Provider should do

DESCRIPTION

Template systems are interfaced with App::TemplateServer with this role. The template server will call the methods required by this role to provider its functionality.

ATTRIBUTES

This role provides the following attributes:

docroot

This is the directory where your templates that you are "providing" live. It is required.

REQUIRED METHODS

You need to implement these:

list_templates

Returns a list of strings representing template names.

render_template($template, $context)

Return the rendered text of the template named by $template. If $template can't be rendered, throw an exception. $context is the App::TemplateServer::Context object for the request.

SEE ALSO

App::TemplateServer