Sha256: 007b50b0d6196b3c32a47b3e52839bc2e0c798eb35f96524d2db308a760bc5bc

Contents?: true

Size: 580 Bytes

Versions: 13

Compression:

Stored size: 580 Bytes

Contents

module Locomotive
  module Steam
    module Liquid
      module Tags
        class PathTo < ::Liquid::Tag

          include Concerns::Attributes
          include Concerns::I18nPage
          include Concerns::Path

          def render(context)
            render_path(context)
          end

          def wrong_syntax!
            raise SyntaxError.new("Valid syntax: path_to <page|page_handle|content_entry>(, locale: [fr|de|...], with: <page_handle>")
          end

        end

        ::Liquid::Template.register_tag('path_to'.freeze, PathTo)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotivecms_steam-1.8.0.alpha2 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.8.0.alpha1 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.7.1 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.7.0 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.6.1 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.6.0 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.6.0.rc1 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.6.0.beta1 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.5.3 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.5.2 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.5.1 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.5.0 lib/locomotive/steam/liquid/tags/path_to.rb
locomotivecms_steam-1.5.0.rc1 lib/locomotive/steam/liquid/tags/path_to.rb