Labyrinth::Writer - Output Management for Labyrinth
use Labyrinth::Writer; Publish('mytemplate.html'); PublishCode('MESSAGE');
The Publish package contains one function, Publish(), which handles the parsing of a given template with global variables and prints the result.
Publish PublishCode UnPublish Transform Croak
Configure template parser and output method.
Publish() parses a given template, via Template Toolkit, and prints the result.
Publishes a template based on an internal code. Current codes and associated templates are:
BADLAYOUT => 'public/badlayout.html', BADPAGE => 'public/badpage.html', BADCMD => 'public/badcommand.html', MESSAGE => 'public/error_message.html',
TODO: Provide these and more as configurable codes.
Used to reset publishing status. Usually only applicable in mod_perl environments.
Given a template and a set of variables, parse without publishing the content.
A shorthand call to publish and record errors.
Labyrinth
Barbie, <barbie@missbarbell.co.uk> for Miss Barbell Productions, http://www.missbarbell.co.uk/
Copyright (C) 2002-2015 Barbie for Miss Barbell Productions All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the Artistic License 2.0.
To install Labyrinth, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Labyrinth
CPAN shell
perl -MCPAN -e shell install Labyrinth
For more information on module installation, please visit the detailed CPAN module installation guide.