The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Statocles::Page::Plain - A plain page (with templates)

VERSION

version 0.098

SYNOPSIS

my $page = Statocles::Page::Plain->new(
    path => '/path/to/page.html',
    content => '...',
);

my $js = Statocles::Page::Plain->new(
    path => '/js/app.js',
    content => '...',
);

DESCRIPTION

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.

ATTRIBUTES

content

The content of the page, already rendered to HTML.

METHODS

content

my $html = $page->content;

Get the content for this page.

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

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.