Rakefile in engine2-1.0.8 vs Rakefile in engine2-1.0.9
- old
+ new
@@ -1,18 +1,18 @@
desc "Compile SLIM"
task :compile_slim do
require 'slim'
- view_dirs = ["fields", "scaffold", "search_fields", "modals"]
+ view_dirs = ["fields", "scaffold", "search_fields", "modals", "panels"]
slims = view_dirs.each.map do |view_dir|
Dir["views/#{view_dir}/*.slim"].map do |slim_file|
slim = Slim::Template.new(slim_file).render.gsub('"', '\"')
tpl_name = slim_file.sub("views/", "").sub(".slim", "")
- "$templateCache.put('#{tpl_name}', \"#{slim}\");"
+ "c.put('#{tpl_name}', \"#{slim}\");"
end
end
open("app/templates.js", "wb") << <<-EOF
-angular.module('Engine2').run(['$templateCache', function($templateCache) {
+angular.module('Engine2').run(['$templateCache', function(c) {
#{slims.join("\n")}
}]);
EOF
end