Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
(Perl) Markup as Perl
Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
t
xt
.gitignore
.shipit
Changes
LICENSE
MANIFEST
MANIFEST.SKIP
Makefile.PL
README

README

#!/usr/bin/env perl
#
# Usage: perl README | w3m -T text/html
#

use lib 'lib';
use Markapl;

sub readme {
    html {
        head {
            title { "Markapl - Markup as Perl" }
        }
        body {
            h2 { "DESCRIPTION" }

            p("#description") {
                "Markapl is the way to generate HTML with (augmented) Perl syntax. It's inspired by both Template::Declare and Markaby."
            }

            h2 { "INSTALLATION" }

            p { "To install this module, run the following commands:" };

            pre {
                q{
    perl Makefile.PL
    make
    make test
    make install}
            }

            h2 { "COPYRIGHT AND LICENCE" }

            p { "Copyright (C) 2008, Kang-min Liu" }

            p {
                outs "This is free software, licensed under: ";
                strong { "The MIT (X11) License" }
            }
        }
    }
}

print main->render("readme");

Something went wrong with that request. Please try again.