This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: Smalltalk web site generation
Feed Title: David Buck - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/buck-rss.xml
Feed Description: Smalltalk can do that
I decided to bite the bullet and write a Smalltalk program to create Simberon's web site. (Thanks everyone for the tips on sites that will support Seaside. I'll keep those in mind, but for now, this is the easiest thing).
Every page is represented by a class. Each class knows its HTML file name and its page title (through class methods). Instance methods for the class write the HTML to a stream. Thanks to inheritance, subclasses only need to write the content.
Even though the code is quite specific to my site, it's pretty clean. For a few hours work, it's not bad. I can now run one Do It and build all the HTML files for the site. I'm guaranteed that all the links work and all the pages are consistent.
One added benefit: I now have StORE version control on the web site. Not too shabby.