diff --git a/app/views/layouts/_templates.haml b/app/views/layouts/_templates.haml index e70fa914e..625d7bb8f 100644 --- a/app/views/layouts/_templates.haml +++ b/app/views/layouts/_templates.haml @@ -1,5 +1,5 @@ - templates_dir = Rails.root.join("app", "views", "templates") -= Dir[templates_dir.to_s + "/*.jst"].each do |template| +- Dir[templates_dir.to_s + "/*.jst"].each do |template| - template_name = File.basename(template, ".jst").gsub("_","-") %script{:id => "#{template_name}-template", :type => 'text/template'} != File.read(templates_dir.join(template))