'Loads a template.'

def load(self, name, parent_path=None):

    name = self.resolve_path(name, parent_path=parent_path)
    with self.lock:
        if (name not in self.templates):
            self.templates[name] = self._create_template(name)
        return self.templates[name]
