require 'cosmo'
require 'os'
require 'string'
require 'lfs'
require 'templates'
require 'blutils'
local root_dir = '/usr/local/www/bluedino.net/www'
local breadcrumbs = blutils.breadcrumbs
local toc = blutils.toc
local presence_indicator = [[
]]
local content = [=[
mu' HaqwI' (word surgeon) is a program that helps you analyze Klingon words. Klingon nouns and verbs are modified by adding affixes. For example, consider modifications of the verb yaj, meaning understand: choyaj means you understand me, choyajbe' means you do not understand me, and choyajlaHbe'ba'mo' means because you obviously cannot understand me. The noun SuS (wind) can be transformed into Sus'a' (gale) and Sus'a'qoq, so-called gale.
The original program was written by Christoph Pfisterer and is available at http://chrisp.de/muhaqwi/download.html. I ported the program to Palm OS. It can be downloaded from http://bluedino.net/downloads/, or you can get the source from the SVN repository at http://bluedino.net/svn/muhaqwi.
]=] local sidebar_content = toc { { url = '/downloads/', name = 'Downloads' }, { url = '/talks/', name = 'Talks' }, { url = '/related/', name = 'Related Sites' }, } function handle(r) local date = os.date('%c', lfs.attributes(root_dir .. '/muhaqwi/index.lua', 'modification')) local html_str = cosmo.fill(templates.main, {date = date, title = "mu' HaqwI'", page_title = 'BlueDino.Net', breadcrumbs = breadcrumbs {"mu' HaqwI'"}, content = content, sidebar_content = sidebar_content, }) r.content_type = 'text/html' r:puts(html_str) end