<<
Web::Pro::HtmlOutput - some procedural routines to output doomfiles material in html form without using a templating system.
use Web::Pro::HtmlOutput qw( header
footer
first_header
last_footer
text2html
);
See:
Web::Chain::IO::Output::Html
Old-fashioned, proceedural code with embedded html for handling the standard html formating of Web material.
All of the following functions or OK for export:
- header - generate the opening html header for a doomfiles page Example usage: print $fh header($node_name, $prev_node_name);
- footer - generate the closing html footer for a doomfiles page Example usage: print $fh footer($next_node_name);
- first_header - generate the opening html header for a doomfiles page Example usage: print $fh first_header($node_name);
- last_footer - generate the closing html footer for the last doomfiles page in this chain. Example usage: print $fh last_footer(); # Need parens to keep from confusing perl (!!!)
- add_node_list_to_whatsnew_body - Takes a reference to a list of DF node names, inserts a list of links to them in the contents (access is provided to this by a scaler string reference). Based on the old doomtool-add_new_node_log_to_WHATSNEW script Used on an interim basis by Web::Chain::IO::Html::log_new_nodes. Example usage: add_node_list_to_whatsnew_body($new_node_list_ref, $content_ref);
- nodelist_to_html - Used by the *::Html::generate_contents_node method to convert a listing (array reference) of node names into a list of html links (text reference). Has one required argument, a reference to an array of node names, and one optional argument a prefix string that will be prepended to each line (e.g. a string of spaces: ' '); Loosely based on the old script: doomtool_generate_CONTENTS.
Project Documentation
Joseph Brenner, <doom@kzsu.stanford.edu>
Copyright (C) 2004 by Joseph Brenner
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.
None reported... yet.
<<