Skip to content

Instantly share code, notes, and snippets.

@emilepetrone
Created August 22, 2010 18:20
Show Gist options
  • Save emilepetrone/544096 to your computer and use it in GitHub Desktop.
Save emilepetrone/544096 to your computer and use it in GitHub Desktop.
def doRender(handler, tname='base/index.html', values={}):
temp = os.path.join(
os.path.dirname(__file__),
'templates/' + tname)
if not os.path.isfile(temp):
return False
outstr = template.render(temp)
handler.response.out.write(outstr)
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment