Class: Jekyll::Gist::GistTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::Gist::GistTag
- Defined in:
- lib/jekyll-gist/gist_tag.rb
Instance Method Summary collapse
Instance Method Details
#render(context) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/jekyll-gist/gist_tag.rb', line 5 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 raise ArgumentError.new " Syntax error in tag 'gist' while parsing the following markup:\n\n \#{@markup}\n\n Valid syntax:\n for all gists: {% gist user/1234567 %}\n eos\n end\nend\n" |