Closed tanakahisateru closed 13 years ago
I want to reference an original attribute's value in tales of tal:attributes. And, sometimes "attributes" causes typo by designers. Shortcut name:"attr", isn't cool?
<a href="prev.html" tal:attributes="href url:/subdir/prev.html">prev</a> <a href="next.html" tal:attributes="href url:/subdir/next.html>next</a> <a href="../index.html" tal:attributes="href url:/index.html">up</a>
<a href="prev.html" ptal:attr="href url:/subdir/${attr/href}">prev</a> <a href="next.html" ptal:attr="href url:/subdir/${attr/href}">next</a> <a href="../index.html" ptal:attr="href url:/subdir/${attr/href}">up</a>
DRY! it's important to minimize knowledge.
reviewed by PHPTAL project developer!
${attr} should be stack for nested tags.
fixed (stack was not needed)
I want to reference an original attribute's value in tales of tal:attributes. And, sometimes "attributes" causes typo by designers. Shortcut name:"attr", isn't cool?