cp -r
'ing it.Render_all_contents.pl
change the default_dest_dir
in the default target to the path you wish to put the static HTML in.Contents.pm
in the top directory contains the layout of the presentation into sections and sub-sections.url
which is the URL relative to the upper node, and title
which is the title of the node.subs
field that has a reference to an array of sub-nodes as a value. If it does it will be treated as a directory; else as a normal HTML file.images
field may be specified to refer to an array of files to be copied to the destination directory as is, without being processed.Contents.pm
file of this very lecture.package Contents; use strict; my $contents = { 'title' => "QuaD-Pres - A Perl-based Tool for Presentation", 'subs' => [ { 'url' => "intro.html", 'title' => "Introduction", }, { 'url' => "history.html", 'title' => "The History of QuaD-Pres", }, { 'url' => "features.html", 'title' => "Quad-Pres Features", }, { 'url' => "usage", 'title' => "Usage", 'subs' => [ { 'url' => "setting-up.html", 'title' => "Setting Up", }, { 'url' => "Contents.pm.html", 'title' => "The Contents.pm File", }, { 'url' => "page.html", 'title' => "An Individual Page", }, { 'url' => "images.html", 'title' => "Including Images", }, ], 'images' => [ 'logo-wml.png' ], }, { 'url' => "no_wml", 'title' => "Using QuaD-Pres without Website Meta Language", 'subs' => [ { 'url' => "page.html", 'title' => "An Individual Page", }, { 'url' => "render-modes.html", 'title' => "The Render Modes", }, ], }, { 'url' => "finale", 'title' => "Finale", 'subs' => [ { 'url' => "samples.html", 'title' => "Sample Presentations", }, { 'url' => "links.html", 'title' => "Links", }, ], } ], 'images' => [ 'style.css', ], }; sub get_contents { return $contents; } |
Render_all_contents.pl
initial templates for all the individual pages will be generated for you in their place under the src
sub-directory.<qpcontents />
evaluates to a table of contents of the current node and inwards.<p> This section will cover some commonly used Autoconf Macros. </p> <qpcontents /> |
images
field of its directory's node.Contents.pm
behaves the same way as it does with WML. What is different is the format and behaviour of the individual pages.<!--& begin_header --> <html> <head> <title>Do it with the GIMP</title> </head> <body bgcolor="#FFFFFF"> <h1>Do it with the GIMP</h1> <!--& end_header --> <h3 class="notbold"> <ul> <li> As opposed to Look-Up Tables, areal filters may take into account the values of the neighbouring pixels and use them to calculate the value of the resultant pixel. </li> </ul> </h3> <!--& begin_contents --> <!--& end_contents --> <!--& begin_footer --> </body> </html> <!--& end_footer --> |
begin_header
to end_header
denote the header, and it will be replaced by the file's header. Whatever comes between it is ignored.begin_footer
and end_footer
denote the footer.begin_contents
and end_contents
insert a table of contents into the textRender_all_contents.pl
I don't believe in fairies. Oops! A fairy died. I don't believe in fairies. Oops! Another fairy died. |