# File lib/yamler/template.rb, line 52 def require_yaml(path) path = File.extname(path) == '' ? "#{path}.yml" : path unless File.exists?(path) path = File.expand_path(File.join(File.dirname(self.path), path)) end Yamler::Template.new(path).render(binding) end