This software offers a uniform platform to use various templating languages.
As an interface, Any::Template exposes only the lowest common denominator of the template engine APIs. Nonetheless, it provides an extensive set of input and output mechanisms. Any::Template uses native implementations where available and offers some default implementations to extend the default set provided by some templating modules.
If you need the peculiar features of a particular templating engine, Any::Template may not be the best choice. However, there are cases in which you can encapsulate some of your logic in options passed to the adaptor classes, either by rolling your adaptors or by improving the ones provided with Any::Template.
The templating languages supported by the backends supplied with this distribution can be found in the README. Remember that there may be other templating systems out there, and you can always roll your own.
The SYNOPSIS of Any::Template showcases how easy it is to use with some basic code snippets. For instance, you can create a new template using HTML::Template as the backend, specifying a file name, and pass it some options. Alternatively, you can also create a new template using Text::Template as the backend, specifying a string as input.
Overall, Any::Template is a robust and flexible module that can significantly simplify the process of working with templating engines.
Version 1.015: N/A