This software provides a runtime environment for processing templates. It ensures that the templates are executed in the correct context to ensure efficient and accurate results.
To access these features, users simply need to create a Template::Context object by using the new() constructor method provided. This allows users to fetch templates, plugin objects, and filter subroutines, as well as process templates and include them in their project.
The runtime context also allows users to save and restore the stash to effect variable localisation efficiently. Additionally, users can add new BLOCK or FILTER definitions through the runtime context as well as reset it, clearing any imported BLOCK definitions and access internal items by making use of the methods provided.
Finally, the Template::Context module provides a default Template::Context object created by the Template module, and any Template::Context options maybe passed to the Template new() constructor method, which will be forwarded to the Template::Context constructor. So, if you're looking for a comprehensive runtime context for your projects, Template::Context is definitely worth giving a try.
Version 2.20: N/A