Giter VIP home page Giter VIP logo

django-inline-svg's People

Contributors

hobbestigrou avatar mixxorz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

django-inline-svg's Issues

Considering using groups and <use ...> ID references

This project is awesome, but one thing you may want to consider is using <g> groups in a larger hidden SVG tag and then outputting <svg ...><use xlink:href="#id"></svg> where the SVG should go. As it stands right now it looks like you're outputting the full SVG each time, which ultimately increases the total size on the request. By using the groups you can just shove each SVG in once and go from there - this works for me in my personal projects, and I've not found any browser issues with it (someone can correct me if I'm wrong).

I'm not sure why but I don't see people do this too often, seems overlooked in terms of a good practice. Maybe a configurable option?

Multiple svgs

Multiple svg don't work because of overlapping classes. Maybe if you can include the svg in an object tag?

How to use same svg with different sizes?

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 now I have a svg file duplicated with different sizes and I don't like this solution. What is the easiest way to achieve this?

Dynamic SVG?

Any plans to allow SVG to be created "on the fly" (perhaps in a view) and then passed into the tag?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.