Class: Jekyll::PlannerLinkTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::PlannerLinkTag
- Defined in:
- lib/jekyll-planningwikiplugins.rb
Instance Method Summary collapse
-
#initialize(tag_name, text, tokens) ⇒ PlannerLinkTag
constructor
A new instance of PlannerLinkTag.
- #render(context) ⇒ Object
Constructor Details
#initialize(tag_name, text, tokens) ⇒ PlannerLinkTag
Returns a new instance of PlannerLinkTag.
53 54 55 56 |
# File 'lib/jekyll-planningwikiplugins.rb', line 53 def initialize(tag_name, text, tokens) super @text = text end |
Instance Method Details
#render(context) ⇒ Object
58 59 60 |
# File 'lib/jekyll-planningwikiplugins.rb', line 58 def render(context) "<a href=\"/ref/planners/#{@text.downcase}\">#{@text}</a>" end |