Simple Web Site Management

Ovid on 2002-11-24T21:38:21

Reinventing the wheel always gets one yelled at, but naturally I am doing it again. I have found that maintaining my Web site is a pain. Naturally, I went on a search for Web content management tools with a few preferences in mind.

  • Easy to use.
  • Not require server side code.
  • Easy to use.
  • Free.
  • Easy to use.
  • Well-written.
  • Easy to use.
  • Automatically generate a navigation bar.

Everything that I found failed one or more of the above prerequisites. ttree from Template Toolkit was the closest I found, but it doesn't appear to automatically generate the navigation bar the way that I want it to be done.

So I'm creating my own. All I do is create a file in my source directory and it's added to the site and all appropriate nav bars are to be updated. Do I want a new section added to the site? I just create a new directory and add a file to it. That's all.

As for the file format:

[title]
This is the title

[body]
<p>Insert the body of the page here.</p>

It's rather simplistic, but that's the point. I don't want to learn some complicated Web content management system for a simple vanity site. So far, I only have ~120 lines of code, but the bulk of the work is done. My work on the dynamic navigation bar will take a bit more time, but other than that, it works perfectly creating all of the folders that I need and generates nice, valid HTML. This should make further updates to my site rather painless. It would probably not be terribly useful for anyone else unless they already know Template Toolkit. Further, $simple == $inflexible, but it does what I want it to do. I can even override the default CSS and templates to customize the look and feel for every section. I rock :)


I've got a solution...

merlyn on 2002-11-24T21:51:23

See [http://www.stonehenge.com/merlyn/LinuxMag/col38.html|my column on how stonehenge.com is done] for starters.

Re:I've got a solution...

merlyn on 2002-11-24T21:52:24

Darn. I'm going to have to learn that PM != UP. Gah.

I should have said: See my column on how stonehenge.com is done for starters.

Re:I've got a solution...

VSarkiss on 2002-11-25T03:44:09

I'm going to have to learn that PM != UP.
Ain't that the truth. If I had a nickel for every time I wrote a name or a keyword in square brackets here, then wished it would actually work....

Re:I've got a solution...

Ovid on 2002-11-24T22:05:27

Since Portland Perl Mongers has been running again, I've missed only one of the meetings. IIRC, that was the meeting where you presented the above. Drat!