Sha256: 0518d6858ea6630858b0b2c8218500dca061bed51ba37da3b0bcdd1e85580d14
Contents?: true
Size: 463 Bytes
Versions: 188
Compression:
Stored size: 463 Bytes
Contents
$ ruby fasteruby-example.rb ----- Erubis::Eruby ----- _buf = ''; _buf << '<div> '; for item in list _buf << ' <p>'; _buf << ( item ).to_s; _buf << '</p> <p>'; _buf << Erubis::XmlHelper.escape_xml( item ); _buf << '</p> '; end _buf << '</div> '; _buf.to_s ----- Erubis::FastEruby ----- _buf = ''; _buf << %Q`<div>\n` for item in list _buf << %Q` <p>#{ item }</p> <p>#{Erubis::XmlHelper.escape_xml( item )}</p>\n` end _buf << %Q`</div>\n` _buf.to_s
Version data entries
188 entries across 162 versions & 41 rubygems