Sha256: 3f4ddd41c919423bf57ca27382fd3a925906ad65a68f6b557c04010cd78260b0

Contents?: true

Size: 285 Bytes

Versions: 214

Compression:

Stored size: 285 Bytes

Contents

require 'erubis'
input = File.read('example9.eruby')
eruby1 = Erubis::Eruby.new(input)
eruby2 = Erubis::Eruby.new(input, :preamble=>false, :postamble=>false)

puts eruby1.src   # print preamble and postamble
puts "--------------"
puts eruby2.src   # don't print preamble and postamble

Version data entries

214 entries across 188 versions & 44 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.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/example9.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.rb
erbse-0.0.1 test/data/users-guide/example9.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/example9.rb
challah-1.0.0 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/example9.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/example9.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/erubis-2.7.0/test/data/users-guide/example9.rb
swipe-rails-0.0.5 vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.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/example9.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/example9.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/example9.rb