Scan directory for templates.

def scan(cls, path):
        """ Scan directory for templates. """
        result = []
        try:
            for _p in listdir(path):
                try:
                    result.append(Template(_p, op.join(path, _p)))
                except ValueError:
                    continue
        except OSError:
            pass

        return result