lib/middleman-slim/template.rb in middleman-slim-0.0.3 vs lib/middleman-slim/template.rb in middleman-slim-0.1.0

- old
+ new

@@ -25,21 +25,21 @@ copy_file 'source/layouts/layout.slim', File.join(location, 'source/layouts/layout.slim') empty_directory File.join(location, 'source', options[:css_dir]) copy_file 'source/stylesheets/all.css', File.join(location, 'source', options[:css_dir], 'all.css') copy_file 'source/stylesheets/normalize.css', File.join(location, 'source', options[:css_dir], 'normalize.css') + replace_images_dir empty_directory File.join(location, 'source', options[:js_dir]) copy_file 'source/javascripts/all.js', File.join(location, 'source', options[:js_dir], 'all.js') empty_directory File.join(location, 'source', options[:images_dir]) copy_file 'source/images/background.png', File.join(location, 'source', options[:images_dir], 'background.png') copy_file 'source/images/middleman.png', File.join(location, 'source', options[:images_dir], 'middleman.png') - replace_css_img_dir end private - def replace_css_img_dir + def replace_images_dir f = File.open(File.join(location, 'source', options[:css_dir], 'all.css'), 'r') buf = f.read buf.gsub!(/IMG_DIR/, options[:images_dir]) f.close