Class: Octopress::Docs::DocUrlTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Octopress::Docs::DocUrlTag
- Defined in:
- lib/octopress-docs/tag.rb
Instance Method Summary collapse
-
#initialize(tag_name, markup, tokens) ⇒ DocUrlTag
constructor
A new instance of DocUrlTag.
- #render(context) ⇒ Object
Constructor Details
#initialize(tag_name, markup, tokens) ⇒ DocUrlTag
Returns a new instance of DocUrlTag.
6 7 8 9 |
# File 'lib/octopress-docs/tag.rb', line 6 def initialize(tag_name, markup, tokens) super @url = markup.strip end |
Instance Method Details
#render(context) ⇒ Object
11 12 13 |
# File 'lib/octopress-docs/tag.rb', line 11 def render(context) '/' + File.join(context['page']['plugin']['docs_base_url'], @url) end |