Forum Moderators: open

Message Too Old, No Replies

one step beyond Notepad?

How to generate a static site using includes?

         

davidpbrown

1:04 pm on Sep 6, 2003 (gmt 0)

10+ Year Member



For a few years I've handcrafted my simple site with Notepad and multiple file editing tools, like Hutmil.

Now that I'm reworking it to CSS/XHTML I'm drawn to using includes as they greatly improve structure and consistency.

However the site is static and so there's no need for realtime includes.

Are there any simple editors which can generate XTML by patching together files, prior to upload, in the way PHP can do?

Using PHP the results are slower and also I can't view the site offline as I could before.. or is there a PHP editor that can work offline?

Sorry for the stupid questions but all my searching revealed little but support for dynamic sites and complex PHP files.

le_gber

2:47 pm on Sep 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi

couple of thoughts

Have you tried .shtml?

Why can't you see your sites offline, haven't you a local server installed?

Leo

Staffa

3:11 pm on Sep 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I saw a small program that is supposed to do the job, actually I'll try it myself.

The URL to the location is in your sticky mailbox.

I hope it's what your looking for.

OOPS - just went back to download and link is broken, program is not listed on developer's site either. Sorry :o(

davidpbrown

3:38 pm on Sep 7, 2003 (gmt 0)

10+ Year Member



Thanks Staffa, exactly what I was looking for.. (the mirror links are working)

Leo..
I have tried .shtml but see little difference with PHP.. including the sense that I wouldn't be able to use it offline on my PC. I don't have a server just a simple hosted server that I upload to. I'm not aware of what a 'local' server is.

Staffa

3:48 pm on Sep 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks David for letting me know, I just downloaded a copy.
Something to play with on a Sunday afternoon.

OK, I'll give myself a pat on the back and say 'get a life'

le_gber

3:57 pm on Sep 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Localserver like windows IIS for example or Apache

You can install them on your computer and run sites from there.

photon

1:51 pm on Sep 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Staffa or davidpbrown--

Without posting a link, can you post the name of the program you found?

Thanks.

davidpbrown

2:08 pm on Sep 8, 2003 (gmt 0)

10+ Year Member



Mihov Website Merger - webmerger.exe

I've not had time to play but it looks as if it may be too simple, adding 'a header' to 'body bits' to 'a footer' and I'm not sure it handles multiple files easily..

Staffa

5:33 pm on Sep 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I tried the program with it's sample files 1 head, 1 foot, 3 'bodies' and it works like it says it would.
I have not tried it on a great number of pages though.

photon

1:13 pm on Sep 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the info. Sounds like it may be too simple for what I need, but I'll check it out.