lib/middleman-slim/template.rb in middleman-slim-0.1.2 vs lib/middleman-slim/template.rb in middleman-slim-0.2.0

- old
+ new

@@ -37,13 +37,11 @@ copy_file 'source/images/middleman.png', File.join(location, 'source', options[:images_dir], 'middleman.png') end private def replace_images_dir - if options[:images_dir] == 'images' - return - end + return if options[:images_dir] == 'images' open(File.join(location, 'source', options[:css_dir], 'all.css'), 'r+') {|f| f.flock(File::LOCK_EX) body = f.read body = body.gsub(/images/, options[:images_dir]) @@ -53,7 +51,5 @@ } end end end end - -Middleman::Templates.register :slim, Middleman::Slim::Template