NAME
Konstrukt::Plugin::upcase - Convert all text into upper case
SYNOPSIS
Usage:
<& upcase &>upper case<& / &>
Result:
UPPER CASE
DESCRIPTION
This plugin will convert all text into upper case. As this is a very easy and rarely used task, the main purpose of this plugin is to demonstrate how to write one.
METHODS
prepare
As the output of this plugin will not vary with each call with the same input, all work can be done in the prepare step if there is no dynamic content inside the content of this tag.
Parameters:
$tag - Reference to the tag (and its children) that shall be handled.
execute
Now there can only be static content below this tag. We can finally modify and return it.
Parameters:
$tag - Reference to the tag (and its children) that shall be handled.
process
As prepare and execute are almost the same each run will just call this method.
Parameters:
$tag - Reference to the tag (and its children) that shall be handled.
$execute - Should be a true value, when we're in the execute-run
AUTHOR
Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.
This document is free software. It is distributed under the same terms as Perl itself.