Class: Locomotive::Steam::Liquid::Tags::PathTo

Inherits:
Liquid::Tag
  • Object
show all
Includes:
Concerns::I18nPage, Concerns::Path
Defined in:
lib/locomotive/steam/liquid/tags/path_to.rb

Constant Summary

Constants included from Concerns::Path

Concerns::Path::Syntax

Instance Method Summary collapse

Methods included from Concerns::Path

#initialize, #render_path

Methods included from Concerns::I18nPage

#change_page_locale

Instance Method Details

#render(context) ⇒ Object



10
11
12
# File 'lib/locomotive/steam/liquid/tags/path_to.rb', line 10

def render(context)
  render_path(context)
end

#wrong_syntax!Object

Raises:

  • (SyntaxError)


14
15
16
# File 'lib/locomotive/steam/liquid/tags/path_to.rb', line 14

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