Re: [Phplib-users] template.inc patch (IF/ELSE/ENDIF)
Brought to you by:
nhruby,
richardarcher
From: nathan r. h. <na...@ds...> - 2001-12-30 18:20:56
|
On Sun, 30 Dec 2001, Tarique Sani <ta...@sa...> wrote: > > Well this has been discussed often and it was agreed that template be kept > simple and strictly design oriented > > I also agree to it .... > > Anything which will confuse my dumb designer is bad :-( > > and most designers are not too good at logic .... > I agree with the no logic in templates rule, it makes things very complicated in terms of designing, espically when the descsions could be made at the app level. This, in some ways, promotes bad application design. Giving power to HTML jockeys also scares the bejesus out of me ;) That said, I can also see the use for condtional statements in the tempalte system, there are times when it can be incredibly handy (changing colors for roms in a table, lets say) and doing it at the app level is harder and can, in some cases, cause addtional unneeded overhead. This can be extra true (if there is such a thing - true++ :) if you are given a codebase that just won't do what you need it to do without serious reworking. JC, would you be willing to rework this patch as an extension class to the current template class? I'd be happy to include that as part of the phplib distribution, and I think that it will make many people happier, not having to have the condtional code in the class if they aren't using it. This also makes maintenence of both bits easier for all of us. I'd be happy to provide you with CVS wrote access if you'd like to maintain it as well (though I could swear you have it already, no?) Thanks, -n -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- nathan hruby / digital statement na...@ds... http://www.dstatement.com/ Public GPG key can be found at: http://www.dstatement.com/nathan-gpg-key.txt ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |