[Seaside] new bindings system
Frank Sergeant
frank@canyon-medical.com
Sun, 26 May 2002 18:01:44 -0600
Avi Bryant <avi@beta4.com> wrote:
> - each element and component can accept event handlers by passing blocks
> to #onDisplay: and #onUpdate:. The display handler is called just before
...
> (template elementNamed: 'someInput')
> bind: #value toPath: 'item.name'
>
> You would now write as:
>
> (template elementNamed: 'someInput')
> onDisplay: [:input | input value: item name];
> onUpdate: [:input | item name: input value].
>
> This is more verbose, but it also has (IMO) much clearer semantics.
I love it. This is so much clearer to me that it offers hope that I
could wrap my mind around it.
> So, am I off my rocker?
If so, these recent changes are not evidence of it. My (untested)
feeling is that these changes are a big improvement.
Thank you.
-- Frank