Orze::Drivers::Template - Create a page using the Template module
This driver uses the famous Template module to create pages. It process the given template using all the variables of the page as its own variables.
It takes care of the following attributes:
The template that will be used. Notice that the default value is "index".
All the templates must be put in the templates/Template directory. The includes/Template directory will be used for all the includes defined in the template file.
templates/Template
includes/Template
The new file will be put in www/outputdir/ according the current page path and name.
www/outputdir/
<page name="index" template="foobar" > <var name="title">Homepage</var> <var name="content">Hello world</var> </page>
Lookt at Template for the template language.
Do the real processing
To install Orze, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Orze
CPAN shell
perl -MCPAN -e shell install Orze
For more information on module installation, please visit the detailed CPAN module installation guide.