pakyow-presenter/lib/presenter/view_store.rb in pakyow-presenter-0.9.0 vs pakyow-presenter/lib/presenter/view_store.rb in pakyow-presenter-0.9.1
- old
+ new
@@ -111,10 +111,10 @@
def load_templates
@templates = {}
if File.exists?(templates_path)
Dir.entries(templates_path).each do |file|
- next if file == '.' || file == '..'
+ next if file =~ /^\./
template = Template.load(File.join(templates_path, file))
@templates[template.name] = template
end
else