lib/capitate/plugins/templates.rb in capitate-0.3.1 vs lib/capitate/plugins/templates.rb in capitate-0.3.2
- old
+ new
@@ -30,13 +30,15 @@
end
# Use first
template_path = template_dirs_found.first + "/#{path}"
+ logger.info "reading #{template_path}"
template_data = IO.read(template_path)
if File.extname(template_path) == ".erb"
template = ERB.new(template_data)
+ logger.info "evaluating #{template_path}"
template_data = template.result(override_binding || binding)
end
template_data
end
\ No newline at end of file