Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG Support #30

Open
romulojales opened this issue Feb 11, 2016 · 1 comment
Open

SVG Support #30

romulojales opened this issue Feb 11, 2016 · 1 comment
Milestone

Comments

@romulojales
Copy link
Member

No description provided.

@romulojales romulojales added this to the Version 1.4 milestone Feb 11, 2016
@romulojales romulojales changed the title Suport to SVG SVG Support Feb 12, 2016
@willianjusten
Copy link

SVG is an XML language based, the only thing you have to do is create a new SVG tree with all symbols (old separated svg icons) inside.

Like this:

<svg>
   <symbol viewbox="take this from separated svg icon" id="maybe_file_name"> <!-- all svg stuff here --></symbol>
</svg>

With that, we can call the method <use> to new svg sprite icon:

<svg>
   <use xlink:href="#maybe_file_name"></use>
</svg>

I created a project with Grunt using this model: svg-grunt-optimizer

Another great project in Python is pyconizr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants