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
brakeman-3.7.1 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
brakeman-3.7.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
brakeman-3.6.2 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
brakeman-3.6.1 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
brakeman-3.6.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
brakeman-3.5.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
abaci-0.3.0 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
brakeman-3.4.1 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result