[Zope3-dev] Re: idea: attr:foo addition to tal
Godefroid Chapelle
gotcha at bubblenet.be
Thu Jul 22 08:40:26 EDT 2004
Steve Alexander wrote:
> I was writing yet another tal:attributes expression, when I had the
> following idea.
>
> How about if there were an 'attr' namespace that the tales interpreter
> understands that replaces attributes?
>
> So, instead of
>
> <a tal:attributes="href item/url" tal:content="item/description" />
>
> we get
>
> <a attr:href="item/url" tal:content="item/description" />
>
I think I like this idea a lot as it would make templates more readable.
I would not use attr as the namespace though.
Also, I am not sure how to combine it with i18n:attributes.
--
Godefroid Chapelle (aka __gotcha) http://bubblenet.be
More information about the Zope3-dev
mailing list