I have a client who wants me to build something to automate the showing off of her 1200 (and counting) pictures with text, and that's easy enough, but she wants to be able to download the website and view it locally without connecting the web, the way she can now with her static html site.

The only thing i could think of was to use perl to create the html pages. so the script would go out and find the pictures and text files according to their names (alpha and dates), and spit out and save an html file with the appropriate text and links to pictures. It would also need a process for linking all the pages. Then she would download the resulting html pages and image files and she would have her local copy.

it can't be an original problem. is there a perl module that does anything like this? She might be willing to load apache on her system, but then i'd have to adjust the script to run locally and I don't really think that's the answer either.

Any thoughts are appreciated.

Edited 2002-06-14 by mirod: changed the title (was: Viewing website locally).


In reply to Generating static HTML pages to view a dynamic website locally by malaga

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.