
Tenjin is a very fast and full-featured templating engine, implemented in several programming languages, among them perl.
the perl version of tenjin supports embedded perl code, nestable layout template, inclusion of other templates inside a template, capturing parts of or the entire template output, file and memory caching, template arguments and preprocessing.