code: def make_template(name, func, *args, **kwargs):
    
    if args or kwargs:
      func = functools.partial(func, *args, **kwargs)
    return Template(name, func)
docs: Given an arbitrary function, wrap it so that it does parameter sharing.