Skip to content

Commit

Permalink
Merge pull request #6 from pathawks/variable_params
Browse files Browse the repository at this point in the history
Merge pull request 6
  • Loading branch information
parkr committed Mar 22, 2015
2 parents 024f580 + 6edd2ba commit c606773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jekyll-gist/gist_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ class GistTag < Liquid::Tag
def render(context)
if tag_contents = determine_arguments(@markup.strip)
gist_id, filename = tag_contents[0], tag_contents[1]
if context[gist_id]
if context.has_key?(gist_id)
gist_id = context[gist_id]
end
if context[filename]
if context.has_key?(filename)
filename = context[filename]
end
gist_script_tag(gist_id, filename)
Expand Down

0 comments on commit c606773

Please sign in to comment.