Re: Dynamic blocks?
| From: | Monte Ohrt | Date: | Thu, 31 May 2001 21:58:09 +0000 |
| Subject: | Re: Dynamic blocks? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-850@lists.php.net to get a copy of this message | ||
hans@linux.gelrevision.nl wrote:
>
> On 31-May-01 Monte Ohrt wrote:
> > "Ray A. Akey" wrote:
>
> [FT blocks]
>
> > Of course my opinion is bias being an author of Smarty, so others with
> > experience with both template solutions, please chime in your thoughts.
>
> I've been using FT on a wide scale for over a year now and I started using
> smarty just a couple of days ago. People that are changing to smarty should
> get a lot of benefits (on the developer side). I do think it might give some
> trouble when it is used within a company since the layout folks wouldn't know
> what to do with nested if's else, sections, etc... Including the nested
> scripting sections can be a solution although I doubt the fact that a
> dreamweaver / fp user would understand what they should edit (and more
> important, what they shouldn't edit).
>
> Regards,
>
> Hans
>
There may be a bit of a learning curve for the template designers who
are new to Smarty, but it's not hard to get the hang of. They can start
simple, and then use more and more of Smarty's features as they get
familiar with it. The skeleton templates (with section looping, etc.)
should be setup by the programmers in advance for them, and designers
move the stuff around on the page and use simple if/else logic for most
common needs. Everything Smarty offers is to leverage the flexibility
designers need to have _full_ control over the content presentation
without having to make changes to the application (yay!), otherwise they
have to correspond with programmers for their presentation needs (==
more development time == more cost to production == less flexibility).
That is why the application should merely assign variables and call a
template, _nothing_ else that has anything to do with content
presentation. That is all handled in the template by the designer.