[Petal] Creating template from string
Gauthier Groult
gauthier at lynch.dnsalias.org
Thu Jul 21 14:46:47 BST 2005
Michael Graham wrote:
>I'm the author of CGI::Application::Plugin::AnyTemplate, which tries to
>create a unified template API for CGI::Application. Currently it
>supports HTML::Template, Template::Toolkit and Petal.
>
>Where possible, I've tried to smooth over the API differences between
>the modules so that the user can switch templating systems without
>changing application code.
>
>One feature that I haven't been able to emulate in Petal is the ability
>to create a template from a string instead of a file.
>
>[...]
>
>There doesn't seem to be a way to do this in Petal, short of writing the
>string to a temporary file and then passing the file to Petal.
>
>Is this something that could be supported in Petal some day?
>
>It's a useful feature for authors who want to bundle a default set of
>generic templates in the .pm file of their application.
>
>
This feature would also be very useful for applications that need to
generate templates dynamically.
g
>Michael
>
>
>
>--
>Michael Graham <magog at the-wire.com>
>
>
>
>
More information about the Petal
mailing list