Class: Locomotive::Liquid::Tags::PathTo
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Locomotive::Liquid::Tags::PathTo
show all
- Includes:
- PathHelper
- Defined in:
- lib/locomotive/liquid/tags/path_to.rb
Constant Summary
Constants included
from PathHelper
Locomotive::Liquid::Tags::PathHelper::Syntax
Instance Method Summary
collapse
Methods included from PathHelper
#initialize, #render_path
Instance Method Details
#render(context) ⇒ Object
8
9
10
|
# File 'lib/locomotive/liquid/tags/path_to.rb', line 8
def render(context)
render_path(context)
end
|
#wrong_syntax! ⇒ Object
12
13
14
|
# File 'lib/locomotive/liquid/tags/path_to.rb', line 12
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
|