Class: Jekyll::PlannerLinkTag

Inherits:
Liquid::Tag
  • Object
show all
Defined in:
lib/jekyll-planningwikiplugins.rb

Instance Method Summary collapse

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