class Middleman::Renderers::ERb::Template

Public Instance Methods

precompiled_preamble(locals) click to toggle source

In preamble we need a flag ‘__in_erb_template` and SafeBuffer for padrino apps.

Calls superclass method
# File lib/middleman-core/renderers/erb.rb, line 13
def precompiled_preamble(locals)
  original = super
  "__in_erb_template = true\n" << original
  # .rpartition("\n").first << "#{@outvar} = _buf = ActiveSupport::SafeBuffer.new\n"
end