Class: Himg::Railtie::TemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/himg/railtie/template_handler.rb

Overview

Handles .himg templates by calling through to Himg.render

Class Method Summary collapse

Class Method Details

.call(_template, source) ⇒ Object



5
6
7
8
9
# File 'lib/himg/railtie/template_handler.rb', line 5

def self.call(_template, source)
  "    Himg.render(\#{source.inspect}, **@_himg_config)\n  CODE\nend\n"