Class: AmberComponent::TemplateHandler::ERB

Inherits:
ActionView::Template::Handlers::ERB::Erubi
  • Object
show all
Defined in:
lib/amber_component/template_handler/erb.rb

Overview

Handles rendering ERB with Rails-like syntax

Instance Method Summary collapse

Constructor Details

#initialize(input, properties = {}) ⇒ ERB

Returns a new instance of ERB.



10
11
12
13
14
# File 'lib/amber_component/template_handler/erb.rb', line 10

def initialize(input, properties = {})
  properties[:bufvar] ||= "@output_buffer"
  properties[:preamble] = "#{properties[:bufvar]}=#{::ActionView::OutputBuffer}.new;"
  super
end