Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Simple Template

by mirod (Canon)
on Sep 01, 2001 at 19:56 UTC ( #109645=note: print w/replies, xml ) Need Help??


in reply to Template with optional PHP execution

Did you have a look at Text::Template and HTML::Template? I don't know HTML::Template that well, but I know Text::Template and it does what you describe, and more, in a much more robust and powerful way. It is also just as easy to use.

I definitely would _not_ re-invent an ad-hoc templating system when people like Dominus have already written it, and when it has been used for several years by thousands of users.

Replies are listed 'Best First'.
Re^2: Simple Template
by fedekiller (Initiate) on Dec 11, 2006 at 06:48 UTC
    I like the php-style of including files to the main template :3

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://109645]
help
Chatterbox?
[SwaJime]: Ran into an interesting piece of code today ...
[SwaJime]: select name,status, status2 from __ where status & status < 13 and status2 & 16 <> 16
[SwaJime]: I'm thinking that looks messed up. Sorry for OT ... but I know y'all are smart :-)
[SwaJime]: I expected items to not be selected if status was 0 ... but they were selected
[SwaJime]: any thoughts?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-08-22 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (338 votes). Check out past polls.

    Notices?