Statocles::Page::Plain - A plain page (with templates)
version 0.086
my $page = Statocles::Page::Plain->new( path => '/path/to/page.html', content => '...', ); my $js = Statocles::Page::Plain->new( path => '/js/app.js', content => '...', );
This Statocles::Page contains any content you want to put in it, while still allowing for templates and layout. This is useful when you generate HTML (or anything else) outside of Statocles.
The content of the page, already rendered to HTML.
my $html = $page->content;
Get the content for this page.
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2016 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.