Template Toolkit Version 3 Developer Documentation
http://www.template-toolkit.org/v3/

Template::Facility

Table of Contents

: $FEATURES
: new()init()acquire()attach()detach()release()

Synopsis


Description

In version 3, all the core functional sub-systems of the runtime environment are separated out into separate facility modules. Different configurations and combinations of facilities can be defined for different runtime contexts. This architecture permits much greater flexibility in the degree to which the core Template Toolkit functionality can be customised to different environments or application areas.

Facilities are acquired for use by a Template::Context object via the acquire($context) method and later released via release(). The former stores an internal reference to the context for use by the facility methods, the latter deletes it to explicity break any circular references. Facilities can be acquired by a context on a per-request or per-session basis.


Package Variables


Methods

Template Toolkit Version 3 Developer Documentation
http://www.template-toolkit.org/v3/