class Temple::Core::StringBuffer
_buf
end
_buf << “more static”
block do
_buf << dynamic.to_s
_buf << “static”
_buf = ”
Implements a string buffer.
def on_dynamic(code)
def on_dynamic(code) if @options[:check_literal] && Utils.literal_string?(code) code else "(#{code}).to_s" end end
def postamble; buffer end
def postamble; buffer end
def preamble; buffer " = ''" end
def preamble; buffer " = ''" end