import os
from tornado.template import Template

__SNIPPET__ = os.path.join(os.path.dirname(os.path.abspath(__file__)), '_snippet')


def T(name, **kw):
	t = Template(open(os.path.join(__SNIPPET__, name + '.html'), 'rb').read())
	return t.generate(**dict([('template_file', name)] + globals().items() + kw.items()))

[((4, 43, 4, 68), 'os.path.abspath', 'os.path.abspath', ({(4, 59, 4, 67): '__file__'}, {}), '(__file__)', False, 'import os\n'), ((8, 19, 8, 60), 'os.path.join', 'os.path.join', ({(8, 32, 8, 43): '__SNIPPET__', (8, 45, 8, 59): "name + '.html'"}, {}), "(__SNIPPET__, name + '.html')", False, 'import os\n')]