Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

(Perl) Markup as Perl

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 xt
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .shipit
Octocat-spinner-32 Changes
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST
Octocat-spinner-32 MANIFEST.SKIP
Octocat-spinner-32 Makefile.PL
Octocat-spinner-32 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.