- SEE ALSO
- COPYRIGHT AND LICENSE
Statocles::Theme - Templates, headers, footers, and navigation
# Template directory layout /theme/site/layout.html.ep /theme/blog/index.html.ep /theme/blog/post.html.ep my $theme = Statocles::Theme->new( store => '/theme' ); my $layout = $theme->template( site => 'layout.html' ); my $blog_index = $theme->template( blog => 'index.html' ); my $blog_post = $theme->template( blog => 'post.html' );
When the "store" is read, the templates inside are organized based on their name and their parent directory.
The source store for this theme.
If the path begins with ::, will pull one of the Statocles default themes from the Statocles share directory.
The cached template objects for this theme.
Handle the path :: share theme.
Read the template for the given
name and create the template object.
Build a new Statocles::Template object with the given
Get the template from the given
section with the given
Doug Bell <firstname.lastname@example.org>
This software is copyright (c) 2015 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.