lib/inky/rails/template_handler.rb in inky-rb-1.3.7.2 vs lib/inky/rails/template_handler.rb in inky-rb-1.3.7.3
- old
+ new
@@ -5,16 +5,18 @@
@engine_handler = ActionView::Template.registered_template_handler(compose_with) if compose_with
end
def engine_handler
return @engine_handler if @engine_handler
+
type = ::Inky.configuration.template_engine
ActionView::Template.registered_template_handler(type) ||
raise("No template handler found for #{type}")
end
def call(template)
compiled_source = engine_handler.call(template)
+
"Inky::Core.new.release_the_kraken(begin; #{compiled_source};end)"
end
module Composer
def register_template_handler(ext, *)