[Zope3-dev] Re: idea: attr:foo addition to tal

Derrick 'dman' Hudson dman at dman13.dyndns.org
Thu Jul 22 17:53:13 EDT 2004


On Thu, Jul 22, 2004 at 06:00:04PM +0200, Philipp von Weitershausen wrote:
| Godefroid Chapelle 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.
| 
| It could even combine in the following way:
| 
| <input type="submit"
|        attr:value="here/label"
|        i18nattr:value="button-label" />
| 
| where button-label is the message id.

This seems more natural.  I like it.  (+1)

-D

-- 
\begin{humor}
Disclaimer:
If I receive a message from you, you are agreeing that:
   1. I am by definition, "the intended recipient"
   2. All information in the email is mine to do with as I see fit and make
        such financial profit, political mileage, or good joke as it lends
        itself to. In particular, I may quote it on USENET or the WWW.
   3. I may take the contents as representing the views of your company.
   4. This overrides any disclaimer or statement of confidentiality that may
        be included on your message
\end{humor}
 
www: http://dman13.dyndns.org/~dman/            jabber: dman at dman13.dyndns.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20040722/7dc3abb2/attachment.bin


More information about the Zope3-dev mailing list