Hello,

I have a script which uses TT, but I've been contemplating embedding it in a PAR archive with a server based on HTTP::Server::Simple. I'd like to embed the templates too, so it's all nicely self-contained.

This would seem to be possible using the LOAD_TEMPLATE config option and a custom Template::Provider implementation.

Seems like a fairly obvious idea, tho, has it been done before? I can't find any prior art on CPAN, although I did file Template::Provider::DBI, which might be a good example to base (say) Template::Provider::PAR on should I decide to have a go at writing it.

Any pointers, if I did have a crack?

Thanks,

Nick


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to