class Middleman::Renderers::ERb::Template
Public Class Methods
Source
# File lib/middleman-core/renderers/erb.rb, line 10 def initialize(*args, &block) super @context = @options[:context] end
Calls superclass method
Public Instance Methods
Source
# File lib/middleman-core/renderers/erb.rb, line 19 def precompiled_preamble(locals) original = super "__in_erb_template = true\n" << original end
In preamble we need a flag ‘__in_erb_template` for padrino apps.
Calls superclass method
Source
# File lib/middleman-core/renderers/erb.rb, line 27 def precompiled_template(locals) if @context super.dup.force_encoding(@context.app.config[:encoding]) else super end end
Force the template the use the configured encoding.
Calls superclass method