Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Add "prefix" attribute to dtml-in and dtml-tree tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simpson committed May 16, 2001
1 parent 8167ec9 commit d4e3193
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions help/dtml-in.stx
Expand Up @@ -50,6 +50,11 @@ in: Loops over sequences
next -- Iterates once if there is a next batch. Sets batch variables
for the next sequence.

prefix=string -- Provide versions of the tag variables that start
with this prefix instead of "sequence", and that use underscores
(_) instead of hyphens (-). The prefix must start with a letter and
contain only alphanumeric characters and underscores (_).

Tag Variables

Current Item Variables
Expand Down Expand Up @@ -203,6 +208,19 @@ in: Loops over sequences
title: <dtml-var title><br>
</dtml-in>

Looping over two sets of objects, using prefixes::

<dtml-let rows="(1,2,3)" cols="(4,5,6)">
<dtml-in rows prefix="row">
<dtml-in cols prefix="col">
<dtml-var expr="row_item * col_item"><br>
<dtml-if col_end>
<dtml-var expr="col_total_item * row_mean_item">
</dtml-if>
</dtml-in>
</dtml-in>
</dtml-let>

Looping over a list of '(key, value)' tuples::

<dtml-in objectItems>
Expand Down
5 changes: 5 additions & 0 deletions help/dtml-tree.stx
Expand Up @@ -70,6 +70,11 @@ tree: Inserts a tree widget
expanding and contracting widget links. This attribute is for
advanced usage only.

prefix=string -- Provide versions of the tag variables that start
with this prefix instead of "tree", and that use underscores
(_) instead of hyphens (-). The prefix must start with a letter and
contain only alphanumeric characters and underscores (_).

Tag Variables

tree-item-expanded -- True if the current node is expanded.
Expand Down

0 comments on commit d4e3193

Please sign in to comment.