This post originated from an RSS feed registered with Ruby Buzz
by David Naseby.
Original Post: Using SVG in Borges
Feed Title: naseby + ruby + stuff
Feed URL: http://homepages.ihug.com.au/~naseby/rss.xml
Feed Description: Random wanderings through Ruby.
I’ve just discovered Sean Russel’s SVG::Graph module, and I immediately had to play with it. If you don’t have an SVG plugin for your browser, you can pick up Adobe’s. I’ve just made the crudest possible embedding of a dynamically generated SVG into a Borges page, and I’m going to share it. If spike quality code offends you, turn away now….
....Really, this code is unhealthy, but it works. Turn away, squeamish souls….
This is clearly only a snippet – it assumes there’s a @project that contains tasks that have a name, a start date, and a due date, and also an infrastructure to run a Borges::Component. I need to wrap all this in some kind of Borges component to move away from the incredibly hackish and amateur r.text rendering of html. But it works! And its pretty. Thats awfully cool.
I’m this close to releasing a 0.0.1 quality Borges app for project management in the small. The final weeks of my current paying job are draining all of my time for now. By July, I will have left my current shop, and be on my own – I’m starting my own business. So if anyone out there needs some work done, you should contact me.