Module: ContextExt

Defined in:
lib/jekyll-dry.rb

Overview

(The MIT License)

Copyright © 2018 Vagiz Duseev

Instance Method Summary collapse

Instance Method Details

#find_variable(key) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/jekyll-dry.rb', line 6

def find_variable(key)
  variable = super(key)
  unless variable
    variable = registers[:site].fragments[key]
  end
  variable
end