SV: Re[2]: [SMARTY] new link

From: Date: Fri, 06 Dec 2002 10:38:45 +0000
Subject: SV: Re[2]: [SMARTY] new link
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6670@lists.php.net to get a copy of this message
Hi I find it a good article. Also I agree somewhat with the comments on separation, the fact is that it depends, it depends on how you use smarty and how your organisation's setup looks like. However, I wouldn't stress so much the separation between the *designer* and the *developer*. I can imagine that in real life the designer will provide templates without the smarty specific code, and the developer will fill it out with the more specific smarty code. At least this is the way I'll be going to use it. I find very useful in the article the comment about good coding practice: "So let's look at how this should be done: {if $display_edit_checkbox} <input type=checkbox name=edit value="y"> edit <br> {/if} There you go, the application determines the criteria internally, then assigns a simple,.." It's basic knowledge, yes, but because smarty lets you do both ways, it is useful to explain good practices, and if you have the time, I think it would be well spent writing some articles that specifically address that issue. Thank you. By the way, thanks a lot for Smarty in the first place. Paolo > -----Oprindelig meddelelse----- > Fra: guido [mailto:sguido@rogers.com] > Sendt: 6. december 2002 01:19 > Til: smarty-general@lists.php.net; smarty-dev@lists.php.net > Emne: Re[2]: [SMARTY] new link > > > Thursday, December 5, 2002, 6:35:31 PM, you wrote: > > HD> Hi! > > >> There is a new link on the Smarty home page saying "why use > it?", please > >> read and give me feedback. Tell me things that might be good to > >> add/change etc. If you're a good technical writer, please feel free to > >> help or do a complete rewrite, as I don't claim to be. :-) > > HD> : Smarty separates the role of the programmer and the > template designer. > > HD> I do not agree with this statement. Smarty separates display > and core, but > HD> the designer must be common on the functions are given. On a > cms eg. most > HD> of the features are placed as plugins to Smarty. So the designer is a > HD> developer as well. > > HD> This is an advantage because you can create an event driven > system. Only > HD> needed parts are included and active as well. > > it depends really .. because as the developer you can build programs > and have a readme file on how the developer can use them. But I agree > it is more accurate to say it separates display and core.. which to me > is better anyway ;) > > HD> Hinrich > > > > > > > -- > Best regards, > guido mailto:sguido@rogers.com > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.smarty.general (#6670) next »