Skip to content Skip to sidebar Skip to footer

Utilitiy Dynamic Creation Of Static Pages...(i'm Not Asking This Because I Want To, Rather Becasue I Have To...)

Does anyone know of a utility for ****ahem**** stringing together static pages. For instance: Say I wrote a header and a footer of a page, and I only wanted to change the content

Solution 1:

Sounds like a job for Webby.

Solution 2:

Sounds like what you want the end result is something that will take N files and stitch the content into a static HTML page that gets uploaded to what I'm assuming is a webserver. Does that sound about right?

I think Dreamweaver has that functionality, but if you want something a little more low level, use this algorithm:

loadconfig file that you use for build parameters
open stream to output file
for each file in source folder 
    load to stream
    write to output stream
closeoutput stream
post file to remote site

Once your pages have been edited, just have your client run this processor. Please let me know if I've totally mis-interpreted what your trying to accomplish.

EDIT: You can also try putting some kind of token in your "dynamic" pages (%HEADER%, %FOOTER%, etc..) and when ever your processor encounters that token replace it with the actual static content.

Post a Comment for "Utilitiy Dynamic Creation Of Static Pages...(i'm Not Asking This Because I Want To, Rather Becasue I Have To...)"