Class: LiquidMarkdown::TemplateHandler::LIQMD

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

Class Method Summary collapse

Class Method Details

.call(template) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/liquid_markdown/template_handler.rb', line 32

def self.call(template)
  if template.formats.include?(:html)
    "LiquidMarkdown::TemplateHandler.render(#{template.source.inspect}, self, :html)"
  else
    "LiquidMarkdown::TemplateHandler.render(#{template.source.inspect}, self, :text)"
  end
end