(@ def lines(x): @)
(@- for i in range(0,x): -@)
line(@= str(i) @)
(@ end -@)
(@ end @)

(@- def other_lines(): @)
singleline
(@ end -@)

before(@= lines(5)+lines(5) @)after
+++
beforeline0
line1
line2
line3
line4
line0
line1
line2
line3
line4
after