Update Vendored Erubis to 2.6.6
This commit is contained in:
parent
c18c2f988d
commit
39c2138f88
300 changed files with 207 additions and 171 deletions
8
vendor/plugins/erubis/test/data/users-guide/main_program2.rb
vendored
Normal file
8
vendor/plugins/erubis/test/data/users-guide/main_program2.rb
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
require 'erubis'
|
||||
eruby = Erubis::Eruby.new(File.read('template2.rhtml'))
|
||||
items = ['foo', 'bar', 'baz']
|
||||
x = 1
|
||||
## only 'items' are passed to template
|
||||
print eruby.evaluate(:items=>items)
|
||||
## local variable 'x' is not changed!
|
||||
puts "** debug: x=#{x.inspect}" #=> 1
|
Loading…
Add table
Add a link
Reference in a new issue