Sha256: bab96050eb17152eecdb434b1b42de72a6b6105bc6b0539597486d0f8bb740c6

Contents?: true

Size: 308 Bytes

Versions: 4

Compression:

Stored size: 308 Bytes

Contents

require 'liquid'

class StaticMatic::TemplateHandlers::Liquid < ActionView::TemplateHandler
  def render(template, local_assigns = {})
    ::Liquid::Template.parse(template.source).render(local_assigns)
  end
end

ActionView::Template.register_template_handler(:liquid, StaticMatic::TemplateHandlers::Liquid)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tdreyno-staticmatic-2.1.1 lib/staticmatic/template_handlers/liquid.rb
tdreyno-staticmatic-2.1.3 lib/staticmatic/template_handlers/liquid.rb
tdreyno-staticmatic-2.1.4 lib/staticmatic/template_handlers/liquid.rb
tdreyno-staticmatic-2.9.0 lib/staticmatic/template_handlers/liquid.rb