Re: Smarty vs PEAR::HTML_Template_IT

From: Date: Tue, 17 Dec 2002 11:02:36 +0000
Subject: Re: Smarty vs PEAR::HTML_Template_IT
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3013@lists.php.net to get a copy of this message
Am Tue, 17 Dec 2002 11:44:17 +0100 schrieb Jeroen Houben <jeroen@terena.nl>: > What is the main difference bewteen Smarty and PEAR::HTML_Template_IT ? > Has anyone switched from one to the other and if so, why? In short: Smarty allows adding program logic inside the template, HTML_Template_IT does not. In addition, Smarty sort of compiles the templates to PHP code, meaning that all template variables and logic are being transformed to native PHP code, so no parsing of the template is required at runtime -> speed increase. Personally, I prefer HTML_Template_IT because of a) its ease of use and b) I´m a strong believer in total separation of program logic and presentation, so I think no logic should ever be inside a template. Also, graphic designers often know only HTML (at best) and would have a hard time learning some sort of template logic markup anyway. Regards, Markus -- *21st Media* | Consulting, Konzeption, Produktion für die Bereiche: Markus Wolff | Internet, Intranet, eCommerce, Content Management, Hamburg,Germany | Softwareentwicklung, 3D-Animation, Videostreaming http://21st.de | Tel. [+49](0)40/6887949-0, Fax: [+49](0)40/6887949-1

« previous php.pear.general (#3013) next »