clipspy-1.0.0/clips/facts.py
def find_template(self, name: str) -> Template:
        """Find the Template by its name."""
        tpl = lib.FindDeftemplate(self._env, name.encode())
        if tpl == ffi.NULL:
            raise LookupError("Template '%s' not found" % name)

        return Template(self._env, name)
Find the Template by its name.
Find the Template by its name.
Find the Template by its name .
def find_template(self, name: str) -> Template:
        tpl = lib.FindDeftemplate(self._env, name.encode())
        if tpl == ffi.NULL:
            raise LookupError("Template '%s' not found" % name)
        return Template(self._env, name)
def find_template ( self , name : str ) -> Template : tpl = lib . FindDeftemplate ( self . _env , name . encode ( ) ) if tpl == ffi . NULL : raise LookupError ( "Template '%s' not found" % name ) return Template ( self . _env , name )
Find the Template by its name.
Find the Template by its name .
"""Find the Template by its name."""
self
name
str