class Trenni::Template::Buffer

def code

def code
	parts = ["#{OUT} = [] ; "] + @parts + ["#{OUT}.join"]
	code = parts.join
end

def expression(text)

def expression(text)
	@parts << "#{text} ; "
end

def initialize

def initialize
	@parts = []
end

def output(text)

def output(text)
	@parts << "#{OUT} << (#{text}) ; "
end

def text(text)

def text(text)
	text = text.gsub('\\', '\\\\\\').gsub('@', '\\@')
	@parts << "#{OUT} << %q@#{text}@ ; "
end