$ ruby fasteruby.rb ---------- script source --- _buf = ''; _buf << %Q`

#{Erubis::XmlHelper.escape_xml( @title )}

\n` i = 0 for item in @list i += 1 _buf << %Q` \n` end _buf << %Q`
#{ i } #{Erubis::XmlHelper.escape_xml( item )}
\n` _buf.to_s ---------- result ----------

Example

1 aaa
2 bbb
3 ccc