'Initialise the template with JSON object and set of Parameters.'

def __init__(self, template, template_id=None, files=None, env=None):

    self.id = template_id
    self.t = template
    self.files = (files or {})
    self.maps = self[self.MAPPINGS]
    self.env = (env or environment.Environment({}))
    self.merge_sections = [self.PARAMETERS]
    self.version = get_version(self.t, _template_classes.keys())
    self.t_digest = None
    condition_functions = {n: function.Invalid for n in self.functions}
    condition_functions.update(self.condition_functions)
    self._parser_condition_functions = condition_functions
