Re: Objective opinion
| From: | Peter Bowyer | Date: | Wed, 20 Mar 2002 14:48:29 +0000 |
| Subject: | Re: Objective opinion | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3123@lists.php.net to get a copy of this message | ||
At 11:18 AM 3/20/02 +0100, Sylvain wrote:
I would like opinion of Andrei and Monte about this project : http://modelixe.phpedit.com What do you think about it ?I've been wondering this. The following is an email that I was writing to Monte but didn't get to a finished state before this message appeared, and I thought that maybe the list should also read it :-) ============================= Have you thought about doing a more glossy site for Smarty - selling the solution? I keep on finding quotes like the following, and can't help wondering if part of the reason is that Modelixe has a rather nice site...
"I'm not sold on using smarty yet. And still prefer Modelixe, for it's ease of use for designers."Having said that about the Smarty site I think I can see his point. For someone not used to programming sticking a $ in front of certain tags and not others must be confusing, but I don't think this is an unsurmountable problem. I believe the XML notation used by Modelixe has advantages. Apparently, Dreamweaver4 supports the XML namespace, and there's a DW extension to allow one to easily add Modelixe tags to the document. Have you thought about making this an option in a future release? Doing a pseudo XML style would be easy (set ldelim = '<smarty:' and rdelim = '>' and it looks the part) but to actually get the attributes into XML format would be harder (if the Modelixe docs are correct and the format is attr="key1:val1;key2:val2;" instead of key1=val1 key2=val2 - although I personally feel this is harder to read _and_ I don't think they're right!) and would require the compiler to be modified or rewritten. The best implementation (from the designer's point of view) I have come across is the one in Zope. For instance, you have: <h2 tal:content="template/articleHeadline">Headline for the Article</h2> instead of the Smarty version: <h2>{$articleHeadline}</h2> The former has the advantage for the designer that the page looks how it should do so when it's got real content in, so it's easier to visualise and design around than the latter. See http://www.webtechniques.com/archives/2001/12/latteier/ for more details. This is also similar to the Microsoft Webclasses template system. Of course the Zope method doesn't prevent the designer (or someone) from having to enter the XML tag attribute, but we can't make things too simple for them :-) In fact it doesn't make creating the template any simpler, only designing around the template components easier. In fact the Zope system is easier to destroy in the template as you don't see it there and therefore don't realise what your're deleting when you remove a HTML tag. FYI, a Cocoon style template system is now in PEAR <http://cvs.php.net/co.php/pear/HTML_TINX/TINX.php?r=1.8>. Smarty is by far the best template engine I've come across for the programmer - it helps us get our job done much quicker, but for the designer maybe improvements could be made. I think the future is XML, as when WYSIWYG editors start to understand custom XML tags the designers will be able to visually design the pages complete with Smarty tags. ===================== The above is of course a load of unfinished ideas that have been bouncing around in my head ever since I first heard that comment about Smarty. Don't take it as criticism - I love Smarty - but more of a "Why don't we do it this way...?" message. It's not really finished, but it's taken me over a week to get it to this stage, and I can't spend any more time on it :-) Best wishes, Peter. --oOo-- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk --oOo-- Glenbranter - Scottish narrow gauge in 009 http://glenbranter.narrow-gauge.co.uk --oOo--