Class: JekyllNavigation::NavigationTag

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

Instance Method Summary collapse

Constructor Details

#initialize(tag_name, level, tokens) ⇒ NavigationTag

Returns a new instance of NavigationTag.



25
26
27
28
# File 'lib/jekyll-navigation.rb', line 25

def initialize(tag_name, level, tokens)
  super
  @level = level.to_s.strip
end

Instance Method Details

#render(context) ⇒ Object



30
31
32
33
# File 'lib/jekyll-navigation.rb', line 30

def render(context)
  navigation = Navigation.new(context, @level)
  navigation.render
end