lib/savagery/spriter.rb in savagery-0.4.4 vs lib/savagery/spriter.rb in savagery-0.5.0

- old
+ new

@@ -17,10 +17,10 @@ def sprite_path path + ".svg" end def sprite - %(<svg style="display: none"><defs>\n\n#{symbols.join("\n")}\n</defs></svg>\n) + %(<svg data-savagery-path="#{sprite_path.split("/assets/svgs/").last}" style="display: none"><defs>\n\n#{symbols.join("\n")}\n</defs></svg>\n) end def symbols Image.from_paths(image_paths).map(&:symbol) end