Sha256: dc4db1887092a0282ffb1cf3eaebec0c1c565b8fb231819b5090227201b5e6d3

Contents?: true

Size: 623 Bytes

Versions: 11

Compression:

Stored size: 623 Bytes

Contents

module Locomotive
  module Steam

    class LiquidParserService

      attr_accessor_initialize :parent_finder, :snippet_finder

      def parse(page)
        _parse(page,
          page:                       page,
          parent_finder:              parent_finder,
          snippet_finder:             snippet_finder,
          parser:                     self,
          default_editable_content:   {})
      end

      def _parse(object, options = {})
        # Note: the template must not be parsed here
        Locomotive::Steam::Liquid::Template.parse(object.liquid_source, options)
      end

    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
locomotivecms_steam-1.1.2 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.1.1 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.1.0 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.1.0.rc3 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.1.0.rc2 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.1.0.rc1 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.0.1 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.0.0 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.0.0.rc10 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.0.0.rc9 lib/locomotive/steam/services/liquid_parser_service.rb
locomotivecms_steam-1.0.0.rc8 lib/locomotive/steam/services/liquid_parser_service.rb