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

Inherits:
Liquid::Tag
  • Object
show all
Includes:
Concerns::Attributes, 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 Attribute Summary

Attributes included from Concerns::Path

#handle

Attributes included from Concerns::Attributes

#attributes, #raw_attributes

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



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

def render(context)
  render_path(context)
end

#wrong_syntax!Object

Raises:

  • (SyntaxError)


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

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