Sha256: d150caa1604ff0c53ea00f8e580368fbaec0fd8d2f0b49964e6d5e563b050ff7

Contents?: true

Size: 444 Bytes

Versions: 188

Compression:

Stored size: 444 Bytes

Contents

$ ruby bufvar-example.rb
----- default -----
_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
----- with :bufvar option -----
@_out_buf = ''; @_out_buf << %Q`<div>\n`
 for item in list 
 @_out_buf << %Q`  <p>#{ item }</p>
  <p>#{Erubis::XmlHelper.escape_xml( item )}</p>\n`
 end 
 @_out_buf << %Q`</div>\n`
@_out_buf.to_s

Version data entries

188 entries across 162 versions & 41 rubygems

Version Path
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
vagrant-shell-0.2.6 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
challah-1.0.0.beta3 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
vagrant-shell-0.2.5 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
challah-1.0.0.beta2 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
challah-1.0.0.beta vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
vagrant-actionio-0.0.9 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
graphael-on-rails-0.5.1 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
graphael-on-rails-0.0.1 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result