RE: About Smarty 2.0
| From: | Monte Ohrt | Date: | Thu, 07 Mar 2002 15:01:20 +0000 |
| Subject: | RE: About Smarty 2.0 | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2970@lists.php.net to get a copy of this message | ||
IMHO, {section} and {foreach} loops are never meant to be built by a
template designer. Those should be put in the skeleton templates by the
programmer. This is no different with something like FastTemplates, do
you think you'd have your designers building dynamic blocks in there?
Now you could simplify things by using a template language that doesn't
have loops in it, but I think that defeats the purpose. You immediately
lose flexability and managability when you split that stuff out into the
application code.
As for our own experience, our designers (and believe me they are
designers, not a designer/programmer hybrid) grasped the concepts of the
template language quite quickly. The {if} constructs they got right
away, and they love 'em! The {section} loops they understand and they
even know how to tweak them and copy/paste them without breaking things,
but they've never had to "build" a section loop. About the only things
they come to the programmers for is complicated requests (far and few
between), like setting up complex IF statement logic, or some funky
{math} equation they need for dynamic table spanning.
Of course Smarty has a steeper learning curve, although that is
subjective. Smarty simply has more capabilities than your average
template language, and it depends on how much you want to use and learn.
You can stick to simple variables, or dive into the template logic you
have at your fingertips.
And btw, thanks goes back to all the Smarty users out there, you're help
and ideas largely contributed to where Smarty is today.
Monte
LIMBOURG Arnaud wrote:
>
> To add to this testimony, i would like to add that Smarty is really nice but
> it is very developer-oriented. Even if luc says that he is not really a
> developper he had to learn stuff that a developper needs.
>
> IMHO, it is difficult to use but the most basic functions when working with
> designers. And if you're going to use just the {$MYVAR}, you're better off
> with some lighter solution like vtemplate. Ask a designer to write a
> {section} ... {foreach} is easier so that removes a bit of complexity.
>
> Some of smarty features can only be used by developers, honestly ;))
>
> Arnaud.
>
>
> >
> > Hello,
> >
> > This morning I just switched from 1.5.2 to 2.0 with a great
> > deal fo fear..
> > and it worked the first time.
> >
> > By the way Peter Bowyer excellent function just need to be renamed
> > smarty_function_table
> > http://www.mapledesign.co.uk/coding/smarty_table.php
> >
> > I would like yet again to congratulate Monte and Andrei,
> > Smarty is really
> > something great.
> >
> > I would add something on the testimony side: Smarty is
> > usually described as
> > "complex", I can testify this is not true. What is true is
> > that Samrty
> > learning curve is longer than any other stuff, but on the
> > other side Smarty
> > is the one and only system that allows a single guy to build
> > and manage a
> > website with hundred of templates, sophisticated user
> > management, editorial
> > publishing and a lot of other stuff without any problem.
> >
> > I tried a lot of other solutions, I tried to extend
> > prepackaged solution
> > (the famous nuke-like family).. nothing comes close to Smarty.
> >
> > And about the "complex" aspect.. I'm not even a developer. I became a
> > so-called one because of my site but in reality I'm not a developer.
> >
> > Luc
> >
> >
> > ---
> > You are currently subscribed to smarty as: arnaud.limbourg@cegetel.fr
> > To unsubscribe send a blank email to
> > $subst('Email.Unsub')
> > Visit Smarty's homepage at
> > http://www.phpinsider.com/php/code/Smarty/
> >
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
Director of Technology, ispi Inc.