// Generated by sprite_svg v<%= SvgSprite::VERSION %> at <%= Time.now %>
$<%= options[:name] %>-names: (<%= names(source) %>);

@mixin <%= options[:name] %>-before($name) {
  &:before {
    @extend %<%= options[:name] %>-#{$name};
  }
}

@mixin <%= options[:name] %>-after($name) {
  &:after {
    @extend %<%= options[:name] %>-#{$name};
  }
}

<% for svg in source %>
%<%= options[:name] %>-<%= svg.name %> {
  background-image: url(<%= svg.data_uri %>);
  <%- if svg.has_dimensions? -%>
  width: <%= svg.width %>;
  height: <%= svg.height %>;
  <%- end -%>
}
<%- end -%>

// Generated by sprite_svg v<%= SvgSprite::VERSION %> at <%= Time.now %>
$<%= options[:name] %>-names: (<%= names(source) %>);
$<%= options[:name] %>-urls: (
  <%- for svg in source -%>
  <%= svg.name %>: "<%= svg.data_uri %>",
  <%- end -%>
);

@function <%= options[:name] %>-url($name) {
  @return map-get($<%= options[:name] %>-urls, $name);
}

@mixin <%= options[:name] %>-before($name) {
  &:before {
    @extend %<%= options[:name] %>-#{$name};
  }
}

@mixin <%= options[:name] %>-after($name) {
  &:after {
    @extend %<%= options[:name] %>-#{$name};
  }
}

<% for svg in source %>
%<%= options[:name] %>-<%= svg.name %> {
  background-image: url(<%= options[:name] %>-url("<%= svg.name %>"));
  <%- if svg.has_dimensions? -%>
  width: <%= svg.width %>;
  height: <%= svg.height %>;
  <%- end -%>
}
<%- end -%>

Add a map of urls.
Add a map of urls.
