in reply to Help with HTML-izing Graph::Easy

Why don't you use the as_html_file(); method on your graph-object?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: Help with HTML-izing Graph::Easy
by isync (Hermit) on Jan 31, 2010 at 19:12 UTC
    The _html routines in Graph::Easy are quite simple. They just wrap some tags around the rendered ascii, boxart, etc. But they do not actually fix problems arising from the discrepancy between source code and rendered html when href's are used as labels. (See my example and patched code, where I use the label string with HTML in it and without, to feed it to Graph::Easy layouting)

    I use the outputted graph boxart on a webpage.