At 8:45 AM on 26 Nov 2009, Randal L. Schwartz wrote:

> >>>>> "Octavian" == Octavian Râsnita <[email protected]> writes:
> 
> Octavian> but if I put just simple html code in the database
> 
> ... then your successor will submit your code to thedailywtf.com
> 
> ... and we'll all have a good laugh at your expense.
> 
> Seriously, wrong way to do it.

I agree with Randal, wholeheartedly.  You need to maintain a separation
between data (in the database) and HTML (in your templates).  They
should not be mixed.

What happens when, for instance, you change your templates to XML
rather than HTML?  Or you want to present the same data as a PDF?  It's
going to have HTML in it!

You really should find another way!


-- 

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0

Attachment: signature.asc
Description: PGP signature

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to