From adc0a0b244d65e65a35889c889c00cc5cfa5ba0f Mon Sep 17 00:00:00 2001 From: Dennis Collinson Date: Thu, 12 Jan 2012 20:44:01 -0800 Subject: [PATCH] don't display iteration of templates --- app/views/layouts/_templates.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))