A further comment. What is it that you are actually looking for to tools to do? Are you wanting an easier (or at least, easier) way to maintain a large (greater than 50 page) site, to ensure all pages have the same style, use the same navigation widgets, and when some common feature is to be changed across all pages, to make sure that is done quickly and completely?

If that is your need (even without the need for CGI programming, pages built dynamically from data base content, and the like), you will need some form of site builder that uses standard and common "objects". EmbPerl::Object is ideal for this, as is (I believe, having never used it), HTML::Mason. HTML::Template may be as well, although I though it didn't directly support the concept of "plugging in" standard elements.

Let me give an example. You want to have at the bottom of every page, a copyright line, with a hyperlink to the full legalese copyright statement. You could put in something like this:

<a href="copyright.html" style="copyright">&copyr; Semper Kludgiemus I +nc 1999-2001</a>;
on every page. What do you do next year, when the date range should say 1999-2002? You edit all 50, 100, 500 pages by hand? Gack!

This is where EmbPerl::Object and HTML::Mason come into their own. You have one overall "master page", which will include a copyright line similar to it in the appropriate place. Or, better still, a call to insert the copyright line "object". Since all your pages are build using this master template, there is only one place where the HTML source of your copyright line is specified. Change that once, and the change is reflected on all pages built.


In reply to Re: Emberl anyone??? by Maclir
in thread Emberl anyone??? by costas

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.