> I've hacked a custom subclass of Builder (SVGBuilder) that can handle this,
> but that's probably the wrong approach -- since most users will want to
> embed SVG inside HTML.
>
> Any Markaby experts here who can help me figure out the best way to
> integrate SVG support into Markaby?
My opinion would be to keep it seperate so that in can be used
elsewhere, but provide a hook into Markaby. So something along the
lines of this (completely untested):
module Markaby
class Builder
def svg(options = {}, &block)
concat SVGBuilder.new(&block)
end
end
end
The developer could either have to explicitly require the hook, or, if
you make the assumption that Markaby is loaded before the SVG code
then you can just test for it's presence i.e. if defined?(Markaby) and
load it based on that.
Hope that makes sense - getting late here :)
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list