#!/usr/bin/env python import cgitb cgitb.enable() import sys, os import notes print 'Content-Type: text/html; charset=utf-8' print print '' docroot = os.environ.get('DOCUMENT_ROOT') fn = os.path.join(docroot, '.' + sys.argv[1]) note = notes.Note(fn) print '
' + note.content + '
' print '' print 'by Sean B. Palmer ' print '' print '' # EOF