Leo wrote:

> 
> Hi Folks,
> 
> Quick question.. we've developed a very nice Template Toolkit
> template for generating SVG graphs (just line at the moment).
> 
> I've had a look some CPAN and seen SVGGraph and SVGGraph::Pie,
> neither of which is as configurable as ours
> 
> Long term I see us creating
> SVG::Graph    - general base module
> SVG::Graph::Bar       - specific template
> SVG::Graph::Line - Got working now - specific template
> SVG::Graph::Pie       - specific template
> 
> So what's the question - well am I stepping on anyone's toes,
> are we reinventing the wheel - is there anything anything
> else I should check before starting :) ?
> 
> Cheers
> 
> Leo
> 
> 
> 

Hi Leo,

I'm not sure what the internals of the SVG::Graph::* modules are going to be. 

Are you using the SVG module in your TT implementation (which is Dom-based)? If 
you are basing your modules on SVG.om, and if it is a major part of your 
implementation, then it is certainly appropriate to use the name space.

But if you are primarily using TT-based processing, I would suggest that a 
better name space would be Template::SVG::Graph or Template::Graph::SVG.

If you are building a specialized implementation of TT, my opinion is that you 
may want to keep within the related name space, so that someone who wants to 
implement a DOM-style Graph module based on the SVG.pm module can so so with 
SVG::Graph.

PS have you looked at the SVG::* modules - such as SVG::Plot (for line graphs) 
by Jo Walsh and Kate Pugh?

http://search.cpan.org/author/ZOOLEIKA/SVG-Plot-0.05/Plot.pm

Cheers,

Ronan



Reply via email to