lib/sprite/styles/sass_yml_generator.rb in amikula-sprite-0.1.11 vs lib/sprite/styles/sass_yml_generator.rb in amikula-sprite-0.1.12

- old
+ new

@@ -14,16 +14,15 @@ # Where to put the sass mixin file sass_path = path.gsub(".yml", ".sass") # write the sass mixins to disk File.open(File.join(Sprite.root, sass_path), 'w') do |f| - f.puts "!sprite_data = '#{path}'" + f.puts "$sprite_data: '#{path}'" f.puts "" - f.puts "= sprite(!group_name, !image_name)" - f.puts " background= sprite_background(!group_name, !image_name)" - f.puts " width= sprite_width(!group_name, !image_name)" - f.puts " height= sprite_height(!group_name, !image_name)" - f.puts "" + f.puts "@mixin sprite($group_name, $image_name)" + f.puts " background: sprite_background($group_name, $image_name)" + f.puts " width: sprite_width($group_name, $image_name)" + f.puts " height: sprite_height($group_name, $image_name)" end end # write the sprite configuration file (used by the yml extension) def write_config(path, sprite_files)