[Zope] Namespace + syntax question

Evan Simpson evan@digicool.com
Tue, 15 Feb 2000 10:53:44 -0600


----- Original Message -----
From: Tres Seaver <tseaver@palladion.com>
> I usually end up throwing in a '<dtml-let ...>' to alias those ridiculous
> "identifiers".  What is the status of the patch to alias them
automatically (I
> _still_ can't figure out why they exist)?

One thing I find myself often wanting is the ability to do this:

<dtml-in expr="arg.bargle[mumble](frotz)" sequence-var=fred>
  <dtml-in expr="fred.item(3)">
    <dtml-var fred/index>: <dtml-var fred/key> <dtml-var sequence-item>
  </dtml-in>
</dtml-in>

...instead of...

<dtml-in expr="arg.bargle[mumble](frotz)">
  <dtml-let fred_index=sequence-index fred_item=sequence-item
fred_key=sequence-key>
  <dtml-in expr="fred_item(3)">
    <dtml-var fred_index>: <dtml-var fred_key> <dtml-var sequence-item>
  </dtml-in>
  </dtml-let>
</dtml-in>

What do you think?

Cheers,

Evan @ digicool