Sha256: 3d29ccc375da3346037dba46e04d8f30f825780eec726a223031581df561b919

Contents?: true

Size: 464 Bytes

Versions: 7

Compression:

Stored size: 464 Bytes

Contents

require 'liquid'

module Hippo

    module Templates

        class Liquid < Base

            def extension
                '.liquid'
            end

            def render
                template.render(variables.stringify_keys)
            end

            def variables
                {}
            end

            def template
                @template ||= ::Liquid::Template.parse(source, :error_mode => :warn)
            end

        end

    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hippo-fw-0.9.7 lib/hippo/templates/liquid.rb
hippo-fw-0.9.6 lib/hippo/templates/liquid.rb
hippo-fw-0.9.5 lib/hippo/templates/liquid.rb
hippo-fw-0.9.4 lib/hippo/templates/liquid.rb
hippo-fw-0.9.3 lib/hippo/templates/liquid.rb
hippo-fw-0.9.2 lib/hippo/templates/liquid.rb
hippo-fw-0.9.1 lib/hippo/templates/liquid.rb