RE: Smarty and speed
| From: | Peter Bowyer | Date: | Sun, 09 Dec 2001 22:08:10 +0000 |
| Subject: | RE: Smarty and speed | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2225@lists.php.net to get a copy of this message | ||
At 04:22 PM 12/9/01 -0500, Pablo wrote:
I apologize for being nasty. I just hate being treated like "I don't get it".Brent didn't deserve your rant Pablo. Your two opposing views are a question of relativity... from Brent's point of view as a *proper* (as opposed to PHP) programmer the Smarty template system really isn't like programming. From your point of view (and I am assuming that you do not have Brent's experience - my humble apologies if you do) Smarty seems like a programming language (I prefer to call it a macro language - it helps me to do my job much more easily). For a designer who understands javascript (as some do) then Smarty won't pose any problems. For those that are pure designers, it will. I know people find Smarty difficult if they are only used to HTML - I've come up against this problem. Just remember that these same people are going to have to grapple with XSLT within the next 5 years (something which is far more complicated, and IMNHO blurs the separation between logic and presentation even more). In the past I have asked myself the same questions as you have been asking on this list. I'm still not happy about mixing some logic with the display like Smarty does (I keep feeling there must be a 'perfect' solution, but I can't think of it!), but then I think that if this is what XSLT is going to do, there can't be much wrong with the idea :-) Use Smarty when it is useful. Use other tools when they suit the job better. I also worked with PHPLib templates for a long time, and I find Smarty to be much easier to use _because_ it mixes some logic in the code -the number of times an {if} statement in a PHPLib template would have simplified my code are too many to count (have you ever had to conditionally delete blocks from a template?) I suggest you think of Smarty as I do, and treat it as a macro language. On large, complicated projects it does save time. Thank you for reading so far, and goodnight :-) Peter. --oOo-- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk --oOo-- Peter's web page - Scottish narrow gauge in 009 http://members.aol.com/reywob/ --oOo--