#!/usr/bin/python import cgi from albatross import SimpleContext ctx = SimpleContext('.') ctx.locals.form = cgi.FieldStorage() templ = ctx.load_template('form.html') templ.to_html(ctx) print 'Content-Type: text/html' print ctx.flush_content()