class Jekyll::IconTagVar
The variable version that can accept a variable name instead of a string
Public Class Methods
new(tag_name, text, tokens)
click to toggle source
Calls superclass method
Jekyll::IconTag::new
# File _plugins/jekyll-icon-tag.rb, line 66 def initialize(tag_name, text, tokens) super @text = text.strip end
Public Instance Methods
render(context)
click to toggle source
# File _plugins/jekyll-icon-tag.rb, line 71 def render(context) cfg = get_config(context) icon = cfg[context[@text]] || '' render_for_text(icon) end