Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Re: Re: Re: pulling content from db - is it a good idea?

by jdtoronto (Prior)
on Nov 25, 2003 at 15:18 UTC ( [id://309924]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: pulling content from db - is it a good idea?
in thread pulling content from db - is it a good idea?

Thats maybe a little unfair, but only a little!

I too point people to HTML::Template, not because it is better but because it is much simpler, and to be totally honest, it is all that most applications require. Template Toolkit is great and Andy Wardley has done a terrific job with it, there are also a number of 'plug-in' modules that go with it. If you want something to do more than just deliver HTML then Template Toolkit is worth a serious look.

As for me, I looked at it. Got scared by the degree of complexity and ran away! Went back a few months later and still had the same thoughts. It has a steep learning curve. HTML::Template, on the other hand, is much simpler and you can master it in a day for doing the sort of things youare talking about.

jdtoronto

PS I have another project coming up shortly where I feel that TT will be suited and I will use it then. For now I am serving up stuff from a database and HTML::Template does everything I need.

  • Comment on Re: Re: Re: Re: Re: pulling content from db - is it a good idea?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: pulling content from db - is it a good idea?
by Anonymous Monk on Nov 25, 2003 at 17:20 UTC
    You can use TT a lot like H::T just by ignoring the advanced features, like blocks, wrappers, methods...
    <TMPL_IF foo> <TMPL_LOOP bar> <TMPL_VAR baz ESCAPE="HTML"> </TMPL_LOOP> </TMPL_IF> [% IF foo %] [% FOREACH bar %] [% baz | html %] [% END %] [% END %]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://309924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-25 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found