def gen_plain_page(title,content=''): return """ @TITLE

@TITLE

@CONTENT

""".replace('@TITLE',title).replace('@CONTENT',content) default_404_text = gen_plain_page('404 - File not found','Sorry, the resource you were looking for could not be found')