instiki/vendor/plugins/erubis/test/data/users-guide/example9.rb
2010-07-04 08:51:53 -05:00

8 lines
285 B
Ruby

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