Added Iteration support.
Said support allows to use the #iterate & #argument #enditerate parameters. Which will duplicate the text block inside of it x amount of times with arguments being replaced. The idea being that if code can be replicated the iterate option would simplify the process. Multiple arguments can be defined (they will be not part of the output) and it will simply insert them. Note that all argument parameters have to be equal size. Otherwise the iterator processor will fail. Iterators can be stacked too to create layers upon layers. On top of that the iterator is part of the Template parser and not of the template processor meaning its a Pre processor step. And all mappers still apply themselves on to the output of the iterators!
This commit is contained in:
+34
-1
@@ -5,4 +5,37 @@ TESTING should not be overriden
|
||||
Test2 should be overriden
|
||||
TESTING should not be overriden too
|
||||
|
||||
Test2 should be overriden too
|
||||
Test2 should be overriden too
|
||||
|
||||
Lets test number 1
|
||||
Lets test number 2
|
||||
Lets test number 3
|
||||
Lets test number 4
|
||||
Lets test number 5
|
||||
Lets test number 6
|
||||
Lets test number 7
|
||||
Lets test number 8
|
||||
Lets test number 9
|
||||
|
||||
Lets test a true condition.
|
||||
Lets test number 1
|
||||
Lets test number 2
|
||||
Lets test number 3
|
||||
Lets test number 4
|
||||
Lets test number 5
|
||||
Lets test number 6
|
||||
Lets test number 7
|
||||
Lets test number 8
|
||||
Lets test number 9
|
||||
|
||||
|
||||
Lets test stacked iterators
|
||||
Lets test numbers 1 4
|
||||
Lets test numbers 1 5
|
||||
Lets test numbers 1 6
|
||||
Lets test numbers 2 4
|
||||
Lets test numbers 2 5
|
||||
Lets test numbers 2 6
|
||||
Lets test numbers 3 4
|
||||
Lets test numbers 3 5
|
||||
Lets test numbers 3 6
|
||||
Reference in New Issue
Block a user