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

From: Date: Fri, 06 Dec 2002 14:35:16 +0000
Subject: Re: Re[2]: [SMARTY] new link
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6674@lists.php.net to get a copy of this message
In our environment, the designer(s) are not a programmers. They are fluent in Photoshop, HTML, CSS, BBEdit, etc. and they understand the templates and their logic. It has a gradual learning curve, first picking up on {if} constructs, and later identifiying how {section} loops work. If there are custom functions that the designer uses or needs in the templates, those are coded by the programmer. The section loops are almost always setup by the programmer before hand with no design-specific elements in it, so they are mostly a cut-n-paste issue, filling in the formatting. And then there is the occasional "whats the best way to accomplish this" questions from the designer which is to be expected, and this is usually what brings about custom functions or newly assigned variables. Monte On Fri, 2002-12-06 at 07:58, Nick Charsley wrote: > > Just to be clear on what I mean, I think it would be better to speak of, > > indeed, > > presentational logic and business logic, or something equivalent. > > > > I think many get, not confused, but bothered by getting classified as the > > one or the other role (designer or developer with what one may put in > these > > words). However it's only a point on effective, or better, friendly > > communication approach. No differences about the value and the advantages > of > > smarty. > > > > Interestingly I think there is some value to feeling that there are the two > roles. Although I work on my own when designing templates and code to run > them, I try to forget everything that my developer-self knows when designing > then page, and so I hope to get a way from thinking "oh I could just sneak a > bit of php in here", and use HTML with simple Smarty tags (usually just > simple variable replacement or single user defined function calls) to get > the layout and then go back with my smarty developer hat on and put in the > more complex (loops/branches) smarty parts. > > I don't know if it really helps me get a better separation, but I do think > it helps to consider that there are at least two stages to the creation of a > template, and two Hats to be worn. > > Nick(c) -- Monte Ohrt <monte@ispi.net>

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