EvanCarroll has asked for the wisdom of the Perl Monks concerning the following question:
What is the best way to install TT templates that a CPAN module will use? Need information with M::I, and as far as location goes. Template wants to load them with a hard path, which is outside of the scope of perl module resolution.
To prevent an XY problem: I've got a script on cpan psql-plus which has an option `--output xhtml|yaml|json` for xml and xhtml, they are simply Templates, so how and where should I put them, and how do I call them. I was thinking inside of a module's __DATA__ section and returning a FH to __DATA__ but that seems hackish. Any better ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template Toolkit install path
by LTjake (Prior) on Sep 10, 2007 at 00:29 UTC | |
by EvanCarroll (Chaplain) on Sep 10, 2007 at 02:48 UTC | |
by LTjake (Prior) on Sep 10, 2007 at 13:44 UTC | |
|
Re: Template Toolkit install path
by Fletch (Bishop) on Sep 10, 2007 at 13:28 UTC |