Module: Jekyll::StringEval
- Defined in:
- jekyll/_plugins/string_eval.rb
Instance Method Summary collapse
Instance Method Details
#string_eval(input) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'jekyll/_plugins/string_eval.rb', line 8 def string_eval(input) if (input != nil && input.is_a?(String) ) # Jekyll.logger.warn "stringeval input = #{input}" # if (input.chars.first != "#") # return input # end site = @context.registers[:site] # test = 'grad coordinator = #{site.data[\'department\'][\'graduate_coordinator\']}' eval '"'+input+'"' else return nil end end |