Untitled
By: a guest | Mar 14th, 2010 | Syntax:
Python | Size: 0.31 KB | Hits: 85 | Expires: Never
def wrap_in_master(master_template):
def _for_real(f):
def _(*args):
master = get_template(master_template)
output = f(*args)
if "master" not in output:
output["master"] = master
return output
return _
return _for_real