DSPG - Static Page Generator
The software I developed to generate this website is available for
you to use. It is a <500
LoC Ruby script. Feel free to download it and report any bugs or
suggestions for improvements.dspg allows to generate very easily a web site with a navigation sidebar from a simple text configuration file, a bunch of HTML files, and a page template.
As an example, here is the configuration file for a simple homepage:
# A simple homepage
example
Home;home.html
-News;news.html
Travels
- Chicaco;chicago.html
-- Pictures;chicago_pic.html
-- Opinion;chicago_opinion.html
About;about.html
Home;home.html
-News;news.html
Travels
- Chicaco;chicago.html
-- Pictures;chicago_pic.html
-- Opinion;chicago_opinion.html
About;about.html
dspg takes the page template and inserts into it: (i) the sidebar navigation menu, (ii) the content of the html files specified in the configuration file, (iii) a title. The result is a set of html files ready to be uploaded to the web server.