lib/esse/template_loader.rb in esse-0.0.5 vs lib/esse/template_loader.rb in esse-0.1.1
- old
+ new
@@ -22,10 +22,10 @@
# Look for files into the @directories using some file pattern.
def read(*patterns)
path = nil
@directories.each do |dir|
patterns.find do |pattern|
- path = Dir[dir.join("#{pattern}.{#{@extensions.join(',')}}")].first
+ path = Dir[dir.join("#{pattern}.{#{@extensions.join(",")}}")].first
break if path
end
break if path
end
load(path) if path