storborg / pyramid_frontend

Theme handling, image filtering, and asset optimization for Pyramid
Other
0 stars 2 forks source link

Add support for SVG images #22

Closed storborg closed 10 years ago

storborg commented 10 years ago

The particular need is support for SVG, but it might be better to try to consider support for any static assets which aren't images.

storborg commented 10 years ago

It would also be nice to do SVG minification here.

storborg commented 10 years ago

Also, there is an important distinction between doing SVG "images", e.g. things that get filters applied to them, vs. SVG "assets", which might just get some kind of processing pipeline a la LESS or requirejs.

The latter probably makes a lot more sense, and an SVGAsset class could be the solution.

storborg commented 10 years ago

Added an SVG asset handler in 07ab638b72b1a02e660ee00a9f059380a3f91fe4

Doesn't currently support minification (it's unclear how useful that is), but may in the future.