use an Array object as buffer (included in Eruby by default)
this is only for Eruby.
[Source]
# File lib/erubis/enhancer.rb, line 192 192: def add_postamble(src) 193: src << "\n" unless src[-1] == ?\n 194: src << "_buf.join\n" 195: end
# File lib/erubis/enhancer.rb, line 188 188: def add_preamble(src) 189: src << "_buf = [];" 190: end
[Validate]