Class: Inky::Rails::TemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/inky/rails/template_handler.rb

Class Method Summary collapse

Class Method Details

.call(template) ⇒ Object



9
10
11
12
# File 'lib/inky/rails/template_handler.rb', line 9

def call(template)
  compiled_source = erb_handler.call(template)
  "Inky::Core.new.release_the_kraken(begin; #{compiled_source};end)"
end

.erb_handlerObject



5
6
7
# File 'lib/inky/rails/template_handler.rb', line 5

def erb_handler
  @erb_handler ||= ActionView::Template.registered_template_handler(:erb)
end