Project

General

Profile

This project is closed and read-only.

Feature #889 ยป erb.patch

enebo (Thomas Enebo), 12/16/2008 03:17 AM

View differences:

lib/ruby/1.8/erb.rb (working copy)
# setup of an ERB _compiler_ object.
#
def set_eoutvar(compiler, eoutvar = '_erbout')
compiler.put_cmd = "#{eoutvar}.concat"
compiler.insert_cmd = "#{eoutvar}.concat"
compiler.put_cmd = "#{eoutvar} << "
compiler.insert_cmd = "#{eoutvar} << "
cmd = []
cmd.push "#{eoutvar} = ''"
cmd.push "#{eoutvar} = []"
compiler.pre_cmd = cmd
cmd = []
cmd.push(eoutvar)
cmd.push("#{eoutvar}.join('')")
compiler.post_cmd = cmd
end
    (1-1/1)