Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: HTML::Tree(Builder) in 6 minutes

by jeffa (Chancellor)
on Aug 03, 2003 at 17:52 UTC ( #280470=note: print w/ replies, xml ) Need Help??


in reply to HTML::Tree(Builder) in 6 minutes

Excellent, but ...

"... if you want to create HTML use CGI or HTML::Element (or other) ..."

*cough* HTML::Template *hermph*
*ahem* Template *cough*

Sorry, but someone had to mention them. ;)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)


Comment on Re: HTML::Tree(Builder) in 6 minutes
Re: Re: HTML::Tree(Builder) in 6 minutes
by trs80 (Priest) on Aug 03, 2003 at 19:45 UTC
    Do those create HTML directly or do they rely on other modules to create the HTML tag itself? If you want to do a large scale application then by all means look into HTML::Template, and Template, but they (c|w)ould be overkill for a quick and simple one time "thing" I feel.
      They actually do neither ... they are templating modules and have no responsibility of producing valid HTML - that's up to the HTML coder. As for being overkill, well ... the more you use these tools, the quicker you get at coding with them. You can see an example that i am proud of over at 4Re: How do I extract text from an HTML page? that uses HTML::Template. The template is stored inside DATA - creating a new H::T object that uses the DATA filehandle is a snap:
      my $template = HTML::Template->new(filehandle => \*DATA);
      For the Template-Toolkit quick and simple scripts, check out Inline::TT, it's slow as hell, but when you combine it with Class::DBI you get some amazing results. I am nearly finished with my C::D mini-tut that will demonstrate using C::D with multiple tables, but here is a snippet just to show you the power of the Class::DBI and Template combo. (and by the way, i learned most of this from How to Avoid Writing Code and the poop-group mailing list)

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)
      
        I don't consider that "easy" and I don't think anyone seeking a quikie tutorial on HTML::Tree would either. You presented no less then 3 advanced topics/modules. I know your good jeffa, but don't confuse the newbies :^)

        My point being, that I think this just muddies the water for a newbie. All great stuff, but some people really only use Perl once and a while....really. They aren't building the next greatest web app. Save this stuff for the right nodes.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2015-07-05 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls