>>> import albatross >>> ctx = albatross.SimpleContext('.') >>> ctx.locals.title = 'Mr.' >>> ctx.locals.fname = 'Harry' >>> ctx.locals.lname = 'Tuttle' >>> templ = albatross.Template(ctx, '', ''' ... ... ... ''') >>> ctx.push_content_trap() >>> templ.to_html(ctx) >>> ctx.pop_content_trap() 'Mr. \nHarry \nTuttle'