An attempt to bring simple SVG Asset Management into modern browsers.
(uses jQuery and works in all modern browsers ;)
> jsvg --name=package --srcdir=assets
<script src="jquery.min.js"></script>
<script src="jsvg.min.js"></script>
$().ready(function() {
$sa.SVGLoader()
.load({
url: 'package.svg'
})
.done(function() {
$('#icon').append( this.asset.get('#icon-settings', { className: 'icon' }) );
});
});
// *you need to configure your server to serve gzip compressed svg files
Thanks for stopping by. If you like you can drop me a line or two.
BTW there's an additional README on GitHub ;)