| 1 | #!/usr/bin/perl -w # -*- perl -*-
|
|---|
| 2 |
|
|---|
| 3 | BEGIN {
|
|---|
| 4 | chdir 't' if -d 't';
|
|---|
| 5 | unshift @INC, '../lib';
|
|---|
| 6 | unshift @INC, '../lib/Pod/t';
|
|---|
| 7 | require "pod2html-lib.pl";
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | use strict;
|
|---|
| 11 | use Test::More tests => 1;
|
|---|
| 12 |
|
|---|
| 13 | convert_n_test("htmlview", "html rendering");
|
|---|
| 14 |
|
|---|
| 15 | __DATA__
|
|---|
| 16 | <?xml version="1.0" ?>
|
|---|
| 17 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|---|
| 18 | <html xmlns="http://www.w3.org/1999/xhtml">
|
|---|
| 19 | <head>
|
|---|
| 20 | <title>NAME</title>
|
|---|
| 21 | <meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|---|
| 22 | <link rev="made" href="mailto:[PERLADMIN]" />
|
|---|
| 23 | </head>
|
|---|
| 24 |
|
|---|
| 25 | <body style="background-color: white">
|
|---|
| 26 |
|
|---|
| 27 | <p><a name="__index__"></a></p>
|
|---|
| 28 | <!-- INDEX BEGIN -->
|
|---|
| 29 |
|
|---|
| 30 | <ul>
|
|---|
| 31 |
|
|---|
| 32 | <li><a href="#name">NAME</a></li>
|
|---|
| 33 | <li><a href="#synopsis">SYNOPSIS</a></li>
|
|---|
| 34 | <li><a href="#description">DESCRIPTION</a></li>
|
|---|
| 35 | <li><a href="#methods____other_stuff">METHODS => OTHER STUFF</a></li>
|
|---|
| 36 | <ul>
|
|---|
| 37 |
|
|---|
| 38 | <li><a href="#new__"><code>new()</code></a></li>
|
|---|
| 39 | <li><a href="#old__"><code>old()</code></a></li>
|
|---|
| 40 | </ul>
|
|---|
| 41 |
|
|---|
| 42 | <li><a href="#testing_for_and_begin">TESTING FOR AND BEGIN</a></li>
|
|---|
| 43 | <li><a href="#testing_urls_hyperlinking">TESTING URLs hyperlinking</a></li>
|
|---|
| 44 | <li><a href="#see_also">SEE ALSO</a></li>
|
|---|
| 45 | </ul>
|
|---|
| 46 | <!-- INDEX END -->
|
|---|
| 47 |
|
|---|
| 48 | <hr />
|
|---|
| 49 | <p>
|
|---|
| 50 | </p>
|
|---|
| 51 | <h1><a name="name">NAME</a></h1>
|
|---|
| 52 | <p>Test HTML Rendering</p>
|
|---|
| 53 | <p>
|
|---|
| 54 | </p>
|
|---|
| 55 | <hr />
|
|---|
| 56 | <h1><a name="synopsis">SYNOPSIS</a></h1>
|
|---|
| 57 | <pre>
|
|---|
| 58 | use My::Module;</pre>
|
|---|
| 59 | <pre>
|
|---|
| 60 | my $module = My::Module->new();</pre>
|
|---|
| 61 | <p>
|
|---|
| 62 | </p>
|
|---|
| 63 | <hr />
|
|---|
| 64 | <h1><a name="description">DESCRIPTION</a></h1>
|
|---|
| 65 | <p>This is the description.</p>
|
|---|
| 66 | <pre>
|
|---|
| 67 | Here is a verbatim section.</pre>
|
|---|
| 68 | <p>This is some more regular text.</p>
|
|---|
| 69 | <p>Here is some <strong>bold</strong> text, some <em>italic</em> and something that looks
|
|---|
| 70 | like an <html> tag. This is some <code>$code($arg1)</code>.</p>
|
|---|
| 71 | <p>This <code>text contains embedded bold and italic tags</code>. These can
|
|---|
| 72 | be nested, allowing <strong>bold and <em>bold & italic</em> text</strong>. The module also
|
|---|
| 73 | supports the extended <strong>syntax </strong>> and permits <em>nested tags &
|
|---|
| 74 | other <strong>cool </strong></em>> stuff >></p>
|
|---|
| 75 | <p>
|
|---|
| 76 | </p>
|
|---|
| 77 | <hr />
|
|---|
| 78 | <h1><a name="methods____other_stuff">METHODS => OTHER STUFF</a></h1>
|
|---|
| 79 | <p>Here is a list of methods</p>
|
|---|
| 80 | <p>
|
|---|
| 81 | </p>
|
|---|
| 82 | <h2><a name="new__"><code>new()</code></a></h2>
|
|---|
| 83 | <p>Constructor method. Accepts the following config options:</p>
|
|---|
| 84 | <dl>
|
|---|
| 85 | <dt><strong><a name="item_foo">foo</a></strong>
|
|---|
| 86 |
|
|---|
| 87 | <dd>
|
|---|
| 88 | <p>The foo item.</p>
|
|---|
| 89 | </dd>
|
|---|
| 90 | </li>
|
|---|
| 91 | <dt><strong><a name="item_bar">bar</a></strong>
|
|---|
| 92 |
|
|---|
| 93 | <dd>
|
|---|
| 94 | <p>The bar item.</p>
|
|---|
| 95 | </dd>
|
|---|
| 96 | <p>This is a list within a list</p>
|
|---|
| 97 | <ul>
|
|---|
| 98 | <li>
|
|---|
| 99 | <p>The wiz item.</p>
|
|---|
| 100 | </li>
|
|---|
| 101 | <li>
|
|---|
| 102 | <p>The waz item.</p>
|
|---|
| 103 | </li>
|
|---|
| 104 | </ul>
|
|---|
| 105 | <dt><strong><a name="item_baz">baz</a></strong>
|
|---|
| 106 |
|
|---|
| 107 | <dd>
|
|---|
| 108 | <p>The baz item.</p>
|
|---|
| 109 | </dd>
|
|---|
| 110 | </li>
|
|---|
| 111 | </dl>
|
|---|
| 112 | <p>Title on the same line as the =item + * bullets</p>
|
|---|
| 113 | <ul>
|
|---|
| 114 | <li><strong><a name="item_black_cat"><code>Black</code> Cat</a></strong>
|
|---|
| 115 |
|
|---|
| 116 | <li><strong><a name="item_sat_on_the">Sat <em>on</em> the</a></strong>
|
|---|
| 117 |
|
|---|
| 118 | <li><strong><a name="item_mat_3c_21_3e">Mat<!></a></strong>
|
|---|
| 119 |
|
|---|
| 120 | </ul>
|
|---|
| 121 | <p>Title on the same line as the =item + numerical bullets</p>
|
|---|
| 122 | <ol>
|
|---|
| 123 | <li><strong><a name="item_cat">Cat</a></strong>
|
|---|
| 124 |
|
|---|
| 125 | <li><strong><a name="item_sat">Sat</a></strong>
|
|---|
| 126 |
|
|---|
| 127 | <li><strong><a name="item_mat">Mat</a></strong>
|
|---|
| 128 |
|
|---|
| 129 | </ol>
|
|---|
| 130 | <p>No bullets, no title</p>
|
|---|
| 131 | <dl>
|
|---|
| 132 | <dt>
|
|---|
| 133 | <dd>
|
|---|
| 134 | <p>Cat</p>
|
|---|
| 135 | </dd>
|
|---|
| 136 | </li>
|
|---|
| 137 | <dt>
|
|---|
| 138 | <dd>
|
|---|
| 139 | <p>Sat</p>
|
|---|
| 140 | </dd>
|
|---|
| 141 | </li>
|
|---|
| 142 | <dt>
|
|---|
| 143 | <dd>
|
|---|
| 144 | <p>Mat</p>
|
|---|
| 145 | </dd>
|
|---|
| 146 | </li>
|
|---|
| 147 | </dl>
|
|---|
| 148 | <p>
|
|---|
| 149 | </p>
|
|---|
| 150 | <h2><a name="old__"><code>old()</code></a></h2>
|
|---|
| 151 | <p>Destructor method</p>
|
|---|
| 152 | <p>
|
|---|
| 153 | </p>
|
|---|
| 154 | <hr />
|
|---|
| 155 | <h1><a name="testing_for_and_begin">TESTING FOR AND BEGIN</a></h1>
|
|---|
| 156 | <br>
|
|---|
| 157 | <p>
|
|---|
| 158 | blah blah
|
|---|
| 159 | </p><p>intermediate text</p>
|
|---|
| 160 | <more>
|
|---|
| 161 | HTML
|
|---|
| 162 | </more>some text<p>
|
|---|
| 163 | </p>
|
|---|
| 164 | <hr />
|
|---|
| 165 | <h1><a name="testing_urls_hyperlinking">TESTING URLs hyperlinking</a></h1>
|
|---|
| 166 | <p>This is an href link1: <a href="http://example.com">http://example.com</a></p>
|
|---|
| 167 | <p>This is an href link2: <a href="http://example.com/foo/bar.html">http://example.com/foo/bar.html</a></p>
|
|---|
| 168 | <p>This is an email link: <a href="mailto:mailto:[email protected]">mailto:[email protected]</a></p>
|
|---|
| 169 | <pre>
|
|---|
| 170 | This is a link in a verbatim block <a href="<a href="http://perl.org">http://perl.org</a>"> Perl </a></pre>
|
|---|
| 171 | <p>
|
|---|
| 172 | </p>
|
|---|
| 173 | <hr />
|
|---|
| 174 | <h1><a name="see_also">SEE ALSO</a></h1>
|
|---|
| 175 | <p>See also <a href="/t/htmlescp.html">Test Page 2</a>, the <a href="/Your/Module.html">the Your::Module manpage</a> and <a href="/Their/Module.html">the Their::Module manpage</a>
|
|---|
| 176 | manpages and the other interesting file <em>/usr/local/my/module/rocks</em>
|
|---|
| 177 | as well.</p>
|
|---|
| 178 |
|
|---|
| 179 | </body>
|
|---|
| 180 |
|
|---|
| 181 | </html>
|
|---|