Sha256: a55604a4914213cf09685f3e09e5bd4b19d07819e33c6101374d4c0c39a40f2c

Contents?: true

Size: 247 Bytes

Versions: 188

Compression:

Stored size: 247 Bytes

Contents

require 'erubis'
input = File.read('example.eruby')

puts "----- default -----"
eruby = Erubis::FastEruby.new(input)
puts eruby.src

puts "----- with :bufvar option -----"
eruby = Erubis::FastEruby.new(input, :bufvar=>'@_out_buf')
print eruby.src

Version data entries

188 entries across 162 versions & 41 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
erbse-0.0.1 test/data/users-guide/bufvar-example.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
challah-1.0.0 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
swipe-rails-0.0.5 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb