I haven't heard of anyone doing this, but it's certainly possible. Since SVG syntax is just XML, it should be pretty straightforward to generate it with Haml. To get the partial functionality, you'll want to add at least a Ruby helper for partials, but that's not hard. You might also want to add helpers for generating other repetitive bits of SVG, although I don't know precisely what those would be.
On Thu, Sep 10, 2009 at 1:09 PM, Paul Cortens <[email protected]> wrote: > > Has anyone used HAML/SASS to create SVG? > > I have low-priority project in which I need to generate a lot of > diagrams. So far all my investigation is pointing me towards SVG. I > used HAML any chance I get, and I would absolutely love to use it for > creating SVG files. Something like SASS mixins (with arguments) would > make coding SVG files so much more DRY! > > If this hasn't been done and isn't currently possible, is anyone > interested in starting a HAML/SASS sister project: Syntactically > Awesome Scalable Vector Graphics (SASVG)? I'd be willing to take the > lead if a few others are willing to pitch in and keep me motivated! > > Cheers, > Paul Cortens > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
