Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-16 Thread Paul Winkler
On Thu, Feb 16, 2006 at 08:05:56PM +0100, Jean-Marc Orliaguet wrote: > I think that the principles stated in that article, of clean separation > between model and view (called "encapsulation") are more important than > the template's actual syntax. But the syntax is important too since > it's h

Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-16 Thread Jean-Marc Orliaguet
Paul Winkler wrote: On Thu, Feb 16, 2006 at 07:06:03PM +0100, Jean-Marc Orliaguet wrote: Yes, that's what I mean. Clearsilver is a good example. There are several advantages: - the data structures are platform-independent (they can be encoded in JSON, C, python), and they can be easily co

Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-16 Thread Paul Winkler
On Thu, Feb 16, 2006 at 07:06:03PM +0100, Jean-Marc Orliaguet wrote: > Yes, that's what I mean. Clearsilver is a good example. There are > several advantages: > > - the data structures are platform-independent (they can be encoded in > JSON, C, python), and they can be easily converted from one

Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-16 Thread Jean-Marc Orliaguet
Martijn Faassen wrote: I don't think it has an implementation of string TALES expressions. It's parsing anything that's actually *inside* the attributes you add on HTML with tal, such as detecting whether a TALES expression type identifier is used ('string:' or 'python:', say), or 'structure

Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-16 Thread Martijn Faassen
Jean-Marc Orliaguet wrote: Martijn Faassen wrote: [snip] It had unit tests, and the regex stuff that I was referring to may be interesting - it ports the regexes from Zope's TALES to Javascript so that the parsing of tales expressions works the same. This is the module that has the regex bits

Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-15 Thread Dario Lopez-Kästen
Martijn Faassen said the following on 2006-02-15 18:27: Aah, now I understand where the 'c' comes from. What about 'btal', browser tal? ctal. Client TAL; I see no reason to restrict this to browsers. This has neat and exiting implications for non-browser clients that understand java-script

Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-15 Thread Jean-Marc Orliaguet
Martijn Faassen wrote: if it doesn't slow things down or add features that are not really needed, I think it's fine, but maybe an explanation would be good as to what it does? It basically does the same thing as ctal does, except less (no tal:repeat for instance, though I did have a simple

Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-15 Thread Martijn Faassen
Jean-Marc Orliaguet wrote: Balazs Ree wrote: On Wed, 15 Feb 2006 16:41:36 +0100 Martijn Faassen wrote: Are you interested in recovering some of there Zope TAL based regex stuff from Sapling? I'd be happy to merge it in. ctal doesn't appear to have this yet. I must have a look, of course a

Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-15 Thread Martijn Faassen
Balazs Ree wrote: On Wed, 15 Feb 2006 16:41:36 +0100 Martijn Faassen wrote: Are you interested in recovering some of there Zope TAL based regex stuff from Sapling? I'd be happy to merge it in. ctal doesn't appear to have this yet. I must have a look, of course any enhancement would be grea

Re: [Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-15 Thread Jean-Marc Orliaguet
Balazs Ree wrote: On Wed, 15 Feb 2006 16:41:36 +0100 Martijn Faassen wrote: A separate svn project would be nice. I'm sure z3lab is open; it's also welcome under the z3 base on codespeak. I will then check it in to one of those; seriously, I can't decide which location would be more p

[Zope3-dev] Re: Re: tal:define="..." considered harmful?

2006-02-15 Thread Balazs Ree
On Wed, 15 Feb 2006 16:41:36 +0100 Martijn Faassen wrote: > A separate svn project would be nice. I'm sure z3lab is open; it's also > welcome under the z3 base on codespeak. I will then check it in to one of those; seriously, I can't decide which location would be more proper as a home. The z3base