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 18 19 20 21 22 23 24 25 |
# 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 raise ArgumentError.new <<-eos Syntax error in tag 'gist' while parsing the following markup: #{@markup} Valid syntax: for public gists: {% gist 1234567 %} for private gists: {% gist user/1234567 %} eos end end |