summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/qweb/qweb-test-foreach.xml
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2011-09-05 13:03:09 +0200
committerAntony Lesuisse <al@openerp.com>2011-09-05 13:03:09 +0200
commitbedfc48dcfb066e61209337235e339975dd093d0 (patch)
treefd1bab7b9f21380f1aa3ca7675018f13b4d9e652 /addons/web/static/lib/qweb/qweb-test-foreach.xml
parent272424894a91aa136952cf88ef206afab5b5505c (diff)
rename base into web part1
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
Diffstat (limited to 'addons/web/static/lib/qweb/qweb-test-foreach.xml')
-rw-r--r--addons/web/static/lib/qweb/qweb-test-foreach.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/addons/web/static/lib/qweb/qweb-test-foreach.xml b/addons/web/static/lib/qweb/qweb-test-foreach.xml
new file mode 100644
index 00000000000..80749882aaf
--- /dev/null
+++ b/addons/web/static/lib/qweb/qweb-test-foreach.xml
@@ -0,0 +1,17 @@
+<templates>
+ <t t-name="repetition-text-content" t-foreach="seq">*</t>
+ <t t-name="repetition-dom-content" t-foreach="seq"><b/></t>
+ <b t-name="repetition-self" t-foreach="seq"/>
+
+ <t t-name="scope-self" t-foreach="seq" t-esc="seq"/>
+ <t t-name="scope-value" t-foreach="seq" t-esc="seq_value"/>
+ <t t-name="scope-index" t-foreach="seq" t-esc="seq_index"/>
+ <t t-name="scope-first" t-foreach="seq"><t t-esc="seq_first"/> </t>
+ <t t-name="scope-last" t-foreach="seq"><t t-esc="seq_last"/> </t>
+ <t t-name="scope-parity" t-foreach="seq"><t t-esc="seq_parity"/> </t>
+ <t t-name="scope-size" t-foreach="seq"><t t-esc="seq_size"/> </t>
+
+ <t t-name="aliasing" t-foreach="seq" t-as="item" t-esc="item"/>
+ <t t-name="loopvars-aliasing"
+ t-foreach="seq" t-as="item"><t t-esc="item_parity"/> </t>
+</templates>