GitXplorerGitXplorer
j

grunt-svg-data-urls

public
1 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
3434bad87e2ddae2fb9427a6603635c0f95287c6

Merge branch 'master' of github.com:phoey/grunt-svg-data-urls

jjoemcelroy committed 10 years ago
Unverified
9a84bd06bb61d83ef8cdb1c7d2d053f0737359f1

merged pr and bumped version

jjoemcelroy committed 10 years ago
Unverified
2b0578adb968299aa10a18d5002e0812378ced6d

Merge pull request #1 from kuksikus/master

jjoemcelroy committed 10 years ago
Unverified
8fa773f0f1286d0f22f3823253765a9b521fcce4

Add return params: width, height

rrmbaad committed 10 years ago
Unverified
f3c4d834ab780785aca3cff0797a26bc7bb9bfba

update version

jjoemcelroy committed 10 years ago
Unverified
e05f436264d8d3692c7d099ac5e53f2a39a894ad

readme updated

jjoemcelroy committed 11 years ago

README

The README file for this repository.

grunt-svg-data-urls

Convert SVGs to data urls and uses templates to style output file. Grunt Plugin.

Template allows you to convert the results object and output the results to the destination file.

How to use


svgDataUrls: {

  compile: {
        
    files: {
      src: [
        "test/resources/*.svg"
      ],
      dest: "tmp/test.coffee"
    },

    template: function(results) {
      var fileContents = ""

      results.forEach(function(item) {
        fileContents += item.name +':' + item.dataUrl + ':' + item.filePath
      })

      return fileContents
    }

  }

}