This is a nice-looking bit of code (FoxtrotUniform++ for putting HTML::Template to more uses), but crazyinsomniac++ for pointing out WebMake. That is an awesome package that I've put to rather extensive use on my own site in the past. It has a lot of features that the average Perl geek would go googly over: a couple different levels of variable interpolation, metadata, and (of course) evaluation of Perl code in your templates. I'd say it's the best choice for generating a static site by hand.

That said, I'm not using WebMake on my site right now, because ... well, because I'm fickle, really. I'm always testing new tools and toys under the subject of "automatic site generation". I miss it sometimes, though.


"All you need is ignorance and confidence; then success is sure."-- Mark Twain

In reply to Re: Automating a Static Website by webfiend
in thread Automating a Static Website by FoxtrotUniform

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.