Parent

Methods

Class/Module Index [+]

Quicksearch

Jekyll::Gist::GistTag

Public Instance Methods

render(context) click to toggle source
# 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:    #{@markup}  Valid syntax:    {% gist user/1234567 %}    {% gist user/1234567 foo.js %}    {% gist 28949e1d5ee2273f9fd3 %}    {% gist 28949e1d5ee2273f9fd3 best.md %}
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.