Re: [SMARTY] my second plugin! :)
| From: | Rasmus Schultz | Date: | Wed, 05 Jun 2002 02:24:57 +0000 |
| Subject: | Re: [SMARTY] my second plugin! :) | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4597@lists.php.net to get a copy of this message | ||
> > Such a small and simple function can now be done in a single template,
> > nice and simple ... why would you want to break that into atoms??
>
> So a designer can redesign it while your developer is on holiday?
>
> So your developer can implement a totally different password
> backend without even having to call the designer once?
but I'm the only designer/developer on the page, so ... besides which,
in any of the places I've worked, we've never had designers that did
HTML - they did the graphics, and we (the programmers) did the HTML
and the programming ... unless you were working on the next microsoft.com,
I don't know why you'd want to have different guys doing the HTML and the
programming? at least I've never worked on any site that big, and frankly
I hope I never will ;)
> That's the key to Smarty's usefulness, the separation of roles.
to me, it's usefulness lies in the integration of the roles - I can now
do the "programming" (queries, sending mail) without really programming
at all, and I have exactly the separation I want: if I wanted to switch
to a different email system or another database, I could do so simply by
altering my plugins.
severing the function calls from the template would not simplify things,
not for me - quite the contrary. I use Smarty for componentizing not
just HTML, but also functionality - you may not like that, and I'm very
aware that it's far from "by the book", but if it works, it works :)