django-inline-svg
django-inline-svg copied to clipboard
A simple SVG template tag for Django
Hi. I need to show the same inline svg with different sizes. What I normally do is opening the svg file with and adding `width="XXX"` to the svg tag. So...
With inlining SVG's it's often useful to give them class names to support things like using CSS to change fill color. Another really useful approach is when using a framework...
Multiple svg don't work because of overlapping classes. Maybe if you can include the svg in an object tag?
Any plans to allow SVG to be created "on the fly" (perhaps in a view) and then passed into the tag?
This project is awesome, but one thing you may want to consider is using `` groups in a larger hidden SVG tag and then outputting `` where the SVG should...
https://github.com/codedread/scour This might be useful as an optional dependency or something; most SVGs in browsers don't need even half the stuff that editors put in there.
Right now, you have to put your svgs under `svg/`. It would be nice if it was configurable.
I am receiving the below error when I try to configure SVG_DIRS. Could you please advise on this? ``` .... INSTALLED_APPS = [ ...... 'svg', .... ] .... SVG_DIRS =...