svg-render was an experimental gem from 2010, it transformed SVG to Javascript canvas code among other things.