Statocles::Theme - Templates, headers, footers, and navigation
version 0.001
# Template directory layout /theme/site/layout.tmpl /theme/blog/index.tmpl /theme/blog/post.tmpl my $theme = Statocles::Theme->new( path => '/theme' ); my $layout = $theme->template( site => 'layout' ); my $blog_index = $theme->template( blog => 'index' ); my $blog_post = $theme->template( blog => 'post' );
A Theme contains all the templates that applications need.
When the source_dir is read, the templates inside are organized based on their name and their parent directory.
source_dir
The source directory for this theme.
The template objects for this theme.
Read the source_dir and create the Statocles::Template objects inside.
Get the template from the given section with the given name.
section
name
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2014 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Statocles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statocles
CPAN shell
perl -MCPAN -e shell install Statocles
For more information on module installation, please visit the detailed CPAN module installation guide.