NAME

PurpleWiki::View::wikihtml - View Driver used for HTML output.

DESCRIPTION

Converts a PurpleWiki::Tree into HTML. The HTML should be XHTML compliant, but it isn't proper XHTML since no header or footer information is attached. The HTML returned here would be stuffed in the <body> section of an XHTML document.

OBJECT STATE

outputString

This contains the current working copy of the text that is ultimately returned by view().

METHODS

new(config => $config, url => $url, pageName => $pageName)

Returns a new PurpleWiki::View::wikihtml object If config is not passed in then a fatal error occurs.

url is the URL prepended to NIDs, defaults to the empty string.

pageName is the pageName used by sketch nodes for the SVG stuff, it defaults to the empty string.

view($wikiTree)

Returns the output as a string of sub-compliant XHTML text. The output can be made XHTML compliant if stuffed into the <body> section of a compliant XHTML document.

AUTHORS

Matthew O'Connor, <matthew@canonical.org>

Chris Dent, <cdent@blueoxen.org>

Eugene Eric Kim, <eekim@blueoxen.org>

SEE ALSO

PurpleWiki::View::Driver