Sha256: b6ad9f1290de5b7de9b20cb620e320ce451dc5ff78f201f92568993b172c1d35
Contents?: true
Size: 541 Bytes
Versions: 41
Compression:
Stored size: 541 Bytes
Contents
module Locomotive module Steam module Liquid module Tags class PathTo < ::Liquid::Tag 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
41 entries across 41 versions & 1 rubygems