Class: Jekyll::GistTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::GistTag
- Defined in:
- lib/jekyll/tags/gist.rb
Instance Method Summary collapse
Instance Method Details
#render(context) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/jekyll/tags/gist.rb', line 10 def render(context) if tag_contents = determine_arguments(@markup.strip) gist_id, filename = tag_contents[0], tag_contents[1] gist_script_tag(gist_id, filename) else "Error parsing gist id" end end |