[Templates] template::provider for use within PAR

wu-lee usenet.wu-lee@noodlefactory.co.uk
Thu, 30 Aug 2007 12:39:34 +0100


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