Vicente Werner said: > mmm some points: > > 1st. Clarity. It's much more clear to me to take a look at a template and > identify a subsituing variable when it's marked as something different > like: > {$var} than the uglyness of <?=$var ?> -and if you follo the recommended > way: > <?php=$var ?>
Tomay-toe, toh-mah-toe. > 2nd. As other users pointed, error handling. Possibly. I could also custom-build it or add it with other libraries/classes. Smarty has it built-in, making Smarty a great choice. > 3th. Lack of temptation. If I start putting pure php code on my templates > it wouldn't be long before half the application logic ends there, we'll > know what's to code under tight schedules. Smarty by separating my > presentation logic from my bussines logic helps me avoid spaghetti code. You must be disciplined in any case. Smarty has loops and custom functions and can even include real PHP. You just have to be disciplined. > Appart from the ton of small features that smarty gives you like caching, > easyness to do popups, the variable modificators, etc.. Caching/popups/variable modifications can be easily added with native PHP functions (that perhaps people aren't aware of) or with external libraries/classes. Smarty has them all "under one roof," making it an excellent choice -- when it's needed. My point is that it isn't always needed, as I thought it was. I'm sure others believe it's their only choice. /dev/idal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php