2.1 Guidance

When creating a new presentation module to be used in Kiriwrite, the following is required.

When creating a new presentation module, at the top of the page the following should be inserted:

package Kiriwrite::Presentation::(modulename);

use strict;
use warnings;

our $VERSION = "(version)";
my $pagedata = "";

Replace (modulename) with the name of the module like HTML4S (which means HTML 4.01 Strict. When specifying the module name it should be the name of the format (HTML) and version (4S as in 4.01 Strict).

'use strict' and 'use warnings' isn't required but it is generally accepted that Perl scripts and modules should have 'use strict' and 'use warnings' lines written.

Replace (version) with the internal version number of the module.

'my $pagedata' doesn't need to be $pagedata and can be something else like $data but it's somewhere where the page data can be stored until it is needed. Presentation modules are stored in the Modules/Presentation directory. For an example of a written presentation module look at the HTML4S.pm file.