#rep directive

#rep repeats the given code block a given number of times.

Examples

#def GREETING(message)
#rep 3
${message}
#endrep
#enddef

Print a total of 6 greetings:
#rep 2
${GREETING("Hello, world!")}
#endrep