Re: patch for IT.php
| From: | Dan Allen | Date: | Tue, 21 May 2002 09:20:23 +0000 |
| Subject: | Re: patch for IT.php | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6275@lists.php.net to get a copy of this message | ||
Yeah, I see your point, but here me out on what I am saying. There
is no way to achieve scenario #1 whereas #2 and #3 are easily
achieved by putting the seperator in the template block itself.
There is no way to do an implode() operation without logic...and I
just see this as a very specialized case that should be addressed.
I don't want Smarty, but I do need to be able to get this very basic
operation.
#1 link1 | link2 | link3
#2 link1 | link2 | link3 |
#3 > Link1 > Link2 > Link3
Dan
p.s. besides, the patch works without leaving a mark.
Bertrand Mansion (bmansion@mamasam.com) wrote:
> le 21/05/02 2:56, Dan Allen à dallen@bsiweb.com a écrit :
>
> > You can throw it back in my face if you don't like it, but here is
> > the patch to add a delimiter option in the blocks so that the
> > template may take on this sort of functionality
> >
> > ---------------------------------
> >
> > <!-- BEGIN block_name {<br />} -->
> > {foo}
> > <!-- END block_name -->
> >
> > result | result | result
> >
> > ---------------------------------
>
> This is model business.
> IMO, in an application using ITX, it is better to separate what you do with
> your raw data and how you will display them. ITX is not Smarty and only
> handles display, not application logic.
>
> In your suggestion, why would I want to have:
>
> What you do with your data is up to you and should not be handled by IT.
> This is in more conform to the Model-View-Controller paradigm and IMO is a
> good habit.
>
> Bertrand Mansion
> Mamasam
--
It is not enough to succeed.
Others must fail.
-- Gore Vidal