NAME
Mojolicious::Plugin::ContentManagement::Type - abstract managed content type
DESCRIPTION
A Mojolicious::Plugin::ContentManagement::Type is a thing that can translate pages to html. This is an abstract base class.
IMPLEMENTATIONS SHIPPED WITH THIS DISTRIBUTION
- Mojolicious::Plugin::ContentManagement::Type::Plain
-
This translator actually does nothing. Perfect if you want to store plain html content pages
- Mojolicious::Plugin::ContentManagement::Type::Markdown
-
A Markdown translator. See Text::Markdown for more details.
METHODS
If you want to be a thing that can translate pages to html, you need to implement the following methods:
translate
my $html = $type->translate($input);
Output needs to be html.