SPUG: Template system

Harding, Alyssa harding.a at portseattle.org
Fri Jul 27 11:52:57 CDT 2001

-----Original Message-----
From: Wallendahl, Michael/SEA [mailto:mwallend at ch2m.com]
Sent: Thursday, July 26, 2001 4:45 PM
To: spug-list at pm.org
Subject: RE: SPUG: Template system


I understand the concept of wanting to seperate HTML and Perl code and how
that could be good.

When would I want to use a "templating system" and when would I want to go
with PHP or ASP?  

I guess PHP/ASP are different scripting languages, so if I wanted to stay
completely Perl, then I would use a templating system.  Correct?

Did I just answer my own question or just confuse myself more? :)


Historically, I have been of a mind to separate my HTML from my code.
Lately, I have come to realize that there are different situations which
call for different things.

In a web production environment, or in any environment where you
a.) don't want people who only fiddle with HTML to be worrying themselves
over your perl ("...but I only took out all those silly dollar signs...")
b.) don't want to end up making HTML changes yourself ("make it say this...
no, make it say that... no, you forgot a comma there...")

separation is A Good Thing.

On the other hand...
PHP, JSP and even *shudder* ASP can be good in an environment where you're
the only one (or one of many with the same skills) who will be maintaining
the code. Or, where you want one file to maintain that does everything
(instead of many with a template system).  

But, as you say, it's not Perl.

I think it all comes down to your project. :)

Alyssa Harding
UNIX System Administrator
Port of Seattle


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/

More information about the spug-list mailing list