Best HTML Templating Module

Best HTML Templating Module

am 18.07.2005 03:04:09 von AgentZK

Hello All,

I'm writing a social networking CGI script, and it's reached the point
where I should really separate the HTML from the logic. I've been
looking into the various templating solutions out there, and I'm having
a hard time deciding which is best. Anyone have suggestions/feedback
about favored modules (functionality, efficiency, etc.)?

Thanks!

-AgentZK

(This'll be running on apache w/ mod_perl).

Re: Best HTML Templating Module

am 18.07.2005 09:35:37 von Aaron

I use HTML::Mason with MasonX::WithApacheSession for all of my web apps
and it works great. I'm a *huge* fan, actually. I run my site Super
Duper Games (http://games.daltons.ca) with it. If you're doing only a
few pages, it might be a little bit of overkill, but if you plan on
scaling, I highly recommend it.

Aaron

Re: Best HTML Templating Module

am 18.07.2005 17:42:50 von Ted Zlatanov

On Sun, 17 Jul 2005, agent_zk13@hotmail.com wrote:

> I'm writing a social networking CGI script, and it's reached the point
> where I should really separate the HTML from the logic. I've been
> looking into the various templating solutions out there, and I'm having
> a hard time deciding which is best. Anyone have suggestions/feedback
> about favored modules (functionality, efficiency, etc.)?

Try as many as possible, it's worth the time investment.

Template Toolkit is my favorite, it balances features and simplicity
well.

Ted

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Re: Best HTML Templating Module

am 19.07.2005 23:51:30 von davebaker

AgentZK wrote:
> Hello All,
>
> I'm writing a social networking CGI script, and it's reached the point
> where I should really separate the HTML from the logic. I've been
> looking into the various templating solutions out there, and I'm having
> a hard time deciding which is best. Anyone have suggestions/feedback
> about favored modules (functionality, efficiency, etc.)?

http://perl.apache.org/docs/tutorials/tmpl/comparison/compar ison.html

Re: Best HTML Templating Module

am 01.09.2005 17:22:19 von Terrence Brannon

AgentZK writes:

> Hello All,
>
> I'm writing a social networking CGI script, and it's reached the point
> where I should really separate the HTML from the logic. I've been
> looking into the various templating solutions out there, and I'm having
> a hard time deciding which is best. Anyone have suggestions/feedback
> about favored modules (functionality, efficiency, etc.)?

HTML::Seamstress, PeTaL, and XML::LibXML, in that order. View
HTML::Seamstress in action with CGI::Prototype and Class::DBI here:

http://www.gimblerus.com

--
Carter's Compass: I know I'm on the right track when,
by deleting something, I'm adding functionality.

Re: Best HTML Templating Module

am 01.09.2005 17:23:12 von Terrence Brannon

Aaron, did you see his requirement? He wanted to *separate* Perl from
HTML not confuse it as Mason does...

> I use HTML::Mason with MasonX::WithApacheSession for all of my web apps
> and it works great. I'm a *huge* fan, actually. I run my site Super
> Duper Games (http://games.daltons.ca) with it. If you're doing only a
> few pages, it might be a little bit of overkill, but if you plan on
> scaling, I highly recommend it.
>
> Aaron
>

--
Carter's Compass: I know I'm on the right track when,
by deleting something, I'm adding functionality.

Re: Best HTML Templating Module

am 01.09.2005 17:23:59 von Terrence Brannon

"Aaron" writes:

> I run my site Super
> Duper Games (http://games.daltons.ca)

could not browse this site.

--
Carter's Compass: I know I'm on the right track when,
by deleting something, I'm adding functionality.

Re: Best HTML Templating Module

am 01.09.2005 17:27:56 von Terrence Brannon

"Aaron" writes:

> I run my site Super
> Duper Games (http://games.daltons.ca) with it.

I registed as princepawn... it took awhile to load but finally
did. Look forward to trying the site.

--
Carter's Compass: I know I'm on the right track when,
by deleting something, I'm adding functionality.

Re: Best HTML Templating Module

am 02.09.2005 17:01:11 von Aaron

Speed problem got fixed yesterday. It should run at a good clip now.

And I apologize. It wasn't clear just how separate he wanted things.

Aaron

Re: Best HTML Templating Module

am 04.09.2005 18:38:49 von Terrence Brannon

"Aaron" writes:

> And I apologize. It wasn't clear just how separate he wanted things.

Perhaps but Mason has no concept of separation. It is for embedding
Perl into HTML and therefore is completely off the mark for the
intended design object - correct me if I'm wrong.

--
Carter's Compass: I know I'm on the right track when,
by deleting something, I'm adding functionality.