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

8 lines
248 B
Ruby

require 'erubis'
class PrintEnabledEruby < Erubis::Eruby
include Erubis::PrintEnabledEnhancer
end
input = File.read('printenabled-example.eruby')
eruby = PrintEnabledEruby.new(input)
list = ['aaa', 'bbb', 'ccc']
print eruby.evaluate(:list=>list)