Class: AmberComponent::TemplateHandler::ERB
- Inherits:
-
ActionView::Template::Handlers::ERB::Erubi
- Object
- ActionView::Template::Handlers::ERB::Erubi
- AmberComponent::TemplateHandler::ERB
- Defined in:
- lib/amber_component/template_handler/erb.rb
Overview
Handles rendering ERB with Rails-like syntax
Instance Method Summary collapse
-
#initialize(input, properties = {}) ⇒ ERB
constructor
A new instance of ERB.
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 |