Class: RepresentativeView::ActionPack2Handler

Inherits:
ActionView::TemplateHandler
  • Object
show all
Includes:
ActionView::TemplateHandlers::Compilable
Defined in:
lib/representative_view/action_pack_2_handler.rb

Instance Method Summary collapse

Instance Method Details

#compile(template) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/representative_view/action_pack_2_handler.rb', line 9

def compile(template)
  "  representative_view(\#{template.format.inspect} || template_format) do |r|\n    \#{template.source}\n  end\n  RUBY\nend\n"