def template(path, base='templates', **kwargs): """Generate the content of the template""" return _template(join(base_dir, join(base, path)), kwargs)
def template(tpl, callback=template_urlfor, **kargs): return _template(callback(tpl), **kargs)