Re: [SMARTY] To who's right is right??
| From: | Oscar Fernandez Sierra | Date: | Tue, 18 Jun 2002 06:21:33 +0000 |
| Subject: | Re: [SMARTY] To who's right is right?? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4917@lists.php.net to get a copy of this message | ||
The fact of giving "power" to template system, in the sense of be able
to decide some things in the logic of templates, make the system
more versatile: we have some libraries being shared by many webs, and I
can
make modifications and configuration changes without modify the code in
libraries,
just because a part of logic can be moved to template system. If I
didn't these,
a should have to modify "the program" many times to accomodate each
web.
Greeting.
Rasmus Mohr wrote:
>
> > You all made some good points. I was feeling guilty about
> > having logic
> > in the template, fearing that Im not
> > separating php from the template.
>
> Gerard don't do that, don't feel guilty! It's allright... ;-)
>
> Seperating logic and templates makes maintenance easier (IMHO), but Bertrand
> is right in claiming the need for some sort of functionality in the
> templates. My "keep it simple" statement was maybe a bit vague - the point
> was to keep the templates as simple as possible in regard to control
> statements and so on.
>
> Maybe it's just a question of taste?
>
> --------------------------------------------------------------
> Rasmus T. Mohr Direct : +45 36 910 122
> Application Developer Mobile : +45 28 731 827
> Netpointers Intl. ApS Phone : +45 70 117 117
> Vestergade 18 B Fax : +45 70 115 115
> 1456 Copenhagen K Email : mailto:rmo@netpointers.com
> Denmark Website : http://www.netpointers.com
>
> "Remember that there are no bugs, only undocumented features."
> --------------------------------------------------------------
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Oscar Fernandez Sierra | Mundinteractivos - El Mundo |
Area de Internet | Pradillo, 42 |
oscar@el-mundo.net | 28002 - Madrid (SPAIN, EU) |
http://www.elmundo.es/ | Tel: (+34) 915864800 (Ext: 4616) |