Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: HTML::Template to Template Toolkit

by kutsu (Priest)
on Mar 08, 2006 at 19:38 UTC ( #535238=note: print w/replies, xml ) Need Help??

in reply to HTML::Template to Template Toolkit

There a simple filter for Template::Toolkit (Template::Plugin::HTML::Template) that will allow HTML::Template like objects. As for a HTML::Template <-> Template::Toolkit converter that shouldn't be too hard to write, at least for most basic functions. Though I too wonder why you would need this; esp. since a number of function just don't exist in HTML::Template so you'll have to write those anyway should be a simple matter to also convert.

Replies are listed 'Best First'.
Re^2: HTML::Template to Template Toolkit
by artist (Parson) on Mar 08, 2006 at 22:49 UTC
    TThanks Kutsu:
    The filter, you mentioned, is useful to me. I like to convert my templates so I can use them with 'Template Toolkit' which has more functionality. I wanted to convert because I can put more stuff into templates in future. I think that, you thought the other way around.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://535238]
[Eily]: It can also be used to force a copy, and remove magic from a variable
[Eily]: there was a post some time ago about variable coming from regex taking more space than the same string defined directly IIRC
[Eily]: and if there's XS, make sure the scalar holds a string representation, that sounds like bad practice though (forcing that on the call side)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-02-22 17:14 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (296 votes). Check out past polls.