In this post on Perl Monks, I think I probably came off sounding a bit more stupid than I probably am (though, I admit I probably should have stated the question better).
To recap briefly, I need to generate a somewhat complex form in Perl. Some really good suggestions for this were presented, and at present, I am evaluating several of them. Further discussion with tilly convinced me that I have a lot more to learn about templating systems.
I am a one man web shop and my place of employment. I do all the design and programming for our few web products. Because our products are deployed for multiple accounts, I needed an easy way of changing the look and feel of each site for each client. And I found and fell in love with HTML::Template. While it helped me to overcome that barrier, I have fallen into some other bad habits that I need to break.
HTML is not a strong suit of mine. Programming is (though as far as things go for me, I still consider myself a Perl novice). And I can do things in Perl (such as producing forms with CGI.pm) that I don't understand all that well in HTML. And so I end up with an ugly, interesting mix of code and pseudo-content that is not all-together well-separated. The little separation I've had though has been sufficient - flexibility in site layout.
Now I find myself working with a web designer on a new project who is completely new to Perl. For the first time I will be forced to give up all my bad habits, but I don't know how
And so I fork() a new learning process. Should anybody reading have some insight to share, it is appreciated.
HTML::Template (Score:1)
Now, my understanding is that Text::Template provides more flexibility in the type of things you can generate, and Template Toolkit...does some other things
------------------------------
You are what you think.
Re:HTML::Template (Score:1)
I spent some time after writing the parent entry looking at Template Toolkit. Some very sweet things you can do
Re:HTML::Template (Score:1)
Mason's another creature -- that I know some stuff about, but it's pretty heavy-duty.
HTML::Template allowed me to get rid of (roughly) 90% of the HTML I was generating. That's a speed increase, plus I suspect I could get a little more picky about what I was importing from CGI and reduce memory overhead. Further, I'd be willing to say that I could have probably just used HTML::Template for HTML and used CGI for form
------------------------------
You are what you think.
Sticky forms (Score:1)
Re:Sticky forms (Score:1)
I guess maybe what I was looking for was any insight people would like to share as far as their experiences with templating, tips or pitfalls, etc., especially with HTML::Template. I've spent most of my programming time since yesterday looking into what others have done with HTML::Template, and I think that I ma