Skip to content

Commit

Permalink
Fix jekyll#176 : Allow variables as include tag argument
Browse files Browse the repository at this point in the history
  • Loading branch information
c-abird committed Jul 3, 2012
1 parent fa8400a commit d316894
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jekyll/tags/include.rb
Expand Up @@ -7,6 +7,7 @@ def initialize(tag_name, file, tokens)
end

def render(context)
@file = context[@file] if context.has_key?(@file)
includes_dir = File.join(context.registers[:site].source, '_includes')

if File.symlink?(includes_dir)
Expand Down

0 comments on commit d316894

Please sign in to comment.