Sha256: 3573426b8552c7790bb342029432803bf438ac5223a82d366aafe7a0e884789c
Contents?: true
Size: 472 Bytes
Versions: 17
Compression:
Stored size: 472 Bytes
Contents
module Locomotive module Liquid module Tags class PathTo < ::Liquid::Tag include PathHelper def render(context) render_path(context) end def wrong_syntax! raise SyntaxError.new("Syntax Error in 'path_to' - Valid syntax: path_to <page|page_handle|content_entry>(, locale: [fr|de|...], with: <page_handle>") end end ::Liquid::Template.register_tag('path_to', PathTo) end end end
Version data entries
17 entries across 17 versions & 2 rubygems