'Retrieve a Template with the given ID from the database.'

@classmethod
def load(cls, context, template_id, t=None):

    if (t is None):
        t = template_object.RawTemplate.get_by_id(context, template_id)
    env = environment.Environment(t.environment)
    t_files = (t.files or t.files_id)
    return cls(t.template, template_id=template_id, env=env, files=t_files)
