-
-
06 Oct 2010 22:05:28 UTC
- Distribution: Plack-Middleware-HTMLify
- Module version: 0.1.1
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (833 / 2 / 0)
- Kwalitee
Bus factor: 0- 100.00% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (11.29KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Plack::Middleware::HTMLify - Transform a non-html page into html.
VERSION
version 0.1.1
SYNOPSIS
use Plack::Builder; my $app = sub { return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ]; }; builder { enable "HTMLify", set_doctype => "...", # html for the doctype set_head => "...", # html to include in <head> set_body_start => "...", # html for the beginning of the <body> set_body_end => "..."; # html for the end of the <body> $app; };
DESCRIPTION
Plack::Middleware::HTMLify is meant to be used to transform non-html web content into html.
Use case: On CPAN, the 'source' link is delivered as 'text/plain'. If you wanted to do some post-processing of this page to add syntax highlighting you would need the page to be set as 'text/html' and have some basic HTML formatting.
SEE ALSO
AUTHOR
Mark Jubenville <ioncache@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Mark Jubenville.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Plack::Middleware::HTMLify, copy and paste the appropriate command in to your terminal.
cpanm Plack::Middleware::HTMLify
perl -MCPAN -e shell install Plack::Middleware::HTMLify
For more information on module installation, please visit the detailed CPAN module installation guide.