Boulder
view release on metacpan or search on metacpan
=head2 $string = $stone->asHTML([\&callback])
Return the data structure as a nicely-formatted HTML 3.2 table,
suitable for display in a Web browser. You may pass this method a
callback routine which will be called for every tag/value pair in the
object. It will be passed a two-item list containing the current tag
and value. It can make any modifications it likes and return the
modified tag and value as a return result. You can use this to modify
tags or values on the fly, for example to turn them into HTML links.
For example, this code fragment will turn all tags named "Sequence"
blue:
my $callback = sub {
my ($tag,$value) = @_;
return ($tag,$value) unless $tag eq 'Sequence';
return ( qq(<FONT COLOR="blue">$tag</FONT>),$value );
}
print $stone->asHTML($callback);
=head2 Stone::dump()
( run in 0.774 second using v1.01-cache-2.11-cpan-364913b4093 )