Parent

Files

Padrino::Erubis::Template

Modded ErubisTemplate that doesn't insist in an String as output buffer.

@api private

Public Instance Methods

precompiled_preamble(locals) click to toggle source
# File lib/padrino-core/application/rendering/extensions/erubis.rb, line 40
def precompiled_preamble(locals)
  old_postamble = super.split("\n")[0..-2]
  [old_postamble, "#{@outvar} = _buf = (#{@outvar} || ActiveSupport::SafeBuffer.new)"].join("\n")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.