App-Templer
view release on metacpan or search on metacpan
The formatting plugins are intentionally simple because they are explicitly
enabled on a per-page basis. There is no need to dynamically try them all in
turn, executing whichever matches a particular condition, for example.
A standard input page-file might look like this:
Title: My page title.
Format: textile
----
This is a textile page. It has **bold** text!
When this page is rendered the Textile plugin is created and it is then called
like so:
if ( $plugin->available() )
{
$html = $plugin->format( $input );
}
If the named formatter is not present, or does not report itself as "enabled"
examples/complex/input/style.css view on Meta::CPAN
dt {
font-weight: bold;
}
examples/simple/input/foo.skx view on Meta::CPAN
Title: Markdown and perl
format: perl, markdown
----
This is **bold**
The magic number is _{ 42 }_.
( run in 1.248 second using v1.01-cache-2.11-cpan-5dc5da66d9d )