css - LESS: Generate SVG data-uri straight from text -


my app uses svgs support gradients ie9 users. save having lot of svg files, define them data-uris in our css files. mean need use generator app remake our gradients each time have slight change of color or direction.

i noticed function in less, half of might make easier: http://lesscss.org/functions/#misc-functions-data-uri

the other half if there way run function on pure text, though contents of file. ie;

data-uri-from-text('image/svg+xml;charset=utf-8', '<svg> ... </svg') 

is there way in less?


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -