How I Built This Site

 Most sites have a consistent look and feel to them. Some way for the visitor to know where they are. Well, programatically, this translates to a page skeleton that gets filled in with content. Sure you can be all fancy and use server-side asp or even generate the content on the fly, but that doesn't make much sense for a static site, like a personal webpage.

So I wrote a simple (in concept anyway) program that takes in a layout file and content file, and it generates each webpage in the site by inserting content into the layout. Not too hard to imagine, but this thing saves you the hassle of cut-and-pasting everything. This might not be a big deal with a tiny site, but every change that I make needs to get propogated to two dozen other html files.

Plus now that I have it in code it's easy to add extra touches. If I decide to make roll-over links on the right I can do it in a snap. Or even something as major as adding an extra category isn't a big deal.

Here's the C source: autogen.c. You can also grab my files to help you figure out how to use it: source.txt, layout.html. There isn't much documentation yet, maybe I'll add some if I ever improve the program to make it more universal and less tailored for my site (eg, a lot of things you might not want are hard-coded in).

 

About

Resume

Pictures

Robotics

Dom@cmu.edu