aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

4.126 - [dup] Built-In

Mnemonic aid: dup for DUPlicate

See also:  [eval] 

content is duplicated N times.

Caution:

This is not the same as  [eval] 

 [dup]  evaluates the content once and then duplicates it N times;  [eval]  can call a style and re-evaluate it on every iteration, passing the content to the style.


[dup N,content]

[local x 0]
[dup 5,foo[vinc x] ]
----
[style binky [b][vinc x] ]
[local x 0]
[eval style=binky,5,bar]

foo1 foo1 foo1 foo1 foo1
----
bar1 bar2 bar3 bar4 bar5
foo1 foo1 foo1 foo1 foo1 ---- bar1 bar2 bar3 bar4 bar5
Note:

As interation and nesting depth of iterations can both create large amounts of output, both may be limited by the invocation parameters xlimit and dlimit. See this page for details on how to set those for class invocations.

Other built-ins used here:  [b] ,  [eval] ,  [inc]  and  [local] 

Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7