Here's a short little tt2 snippet (nothing fancy)
tpage --define dirp=E:\dev\loose\ab --define tld=dirtree.com dirtr +ee2.tt2 >dirtree2.html
produces
<!-- Usage: tpage --define dirp=E:\dev\loose\ab --define tld=dirtree.com dirtr +ee2.tt2 >dirtree2.html --> <table border=1> <tr> <td bgcolor="white"> <base href="dirtree.com"><br> <a href="http://dirtree.com/">http://dirtree.com/</a><br> <blockquote> <font color="white">/</font><a href="/Qo">Qo</a> <br> <font color="white">/Qo/</font><a href="/Qo/ZZ">ZZ</a> <br> <font color="white">/Qo/</font><a href="/Qo/a">a</a> <br> <font color="white">/Qo/a/</font><a href="/Qo/a/s">s</a> <br> <font color="white">/</font><a href="/ro">ro</a> <br> <font color="white">/ro/</font><a href="/ro/ZZ">ZZ</a> <br> <font color="white">/ro/</font><a href="/ro/la">la</a> <br> </blockquote> </td> </tr> </table>
<!-- Usage: tpage --define dirp=E:\dev\loose\ab --define tld=dirtree.com dirtr +ee2.tt2 >dirtree2.html --> <table border=1> <tr> <td bgcolor="white"> [% USE dir = Directory(dirp) %] <base href="[% tld %]"> <a href="http://[% tld %]/">http://[% tld %]/</a><br> <blockquote> [% INCLUDE showdir %] </blockquote> </td> </tr> </table> [%- BLOCK showdir -%] [%- RETURN UNLESS dir.dirs -%] [%- FOREACH item = dir.dirs -%] <font color="white">[%- href -%]/</font><a href="[%- href -%]/[%- item +.name -%]">[%- item.name -%]</a> <br> [% newhref = "$href/" _ item.name %] [%- item.scan -%] [%- IF item.dirs -%] [%- INCLUDE showdir dir=item href=newhref %] [%- END -%] [%- END -%] [%- END -%]

In reply to dirtree2.tt2 by PodMaster

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.