docstamp/template.py
def _setup_template_file(self, template_file_path):
        """ Setup self.template

        Parameters
        ----------
        template_file_path: str
            Document template file path.
        """
        try:
            template_file = template_file_path
            template_env = get_environment_for(template_file_path)
            template = template_env.get_template(os.path.basename(template_file))
        except:
            raise
        else:
            self._template_file = template_file
            self._template_env = template_env
            self.template = template
def _setup_template_file(self, template_file_path):
        try:
            template_file = template_file_path
            template_env = get_environment_for(template_file_path)
            template = template_env.get_template(os.path.basename(template_file))
        except:
            raise
        else:
            self._template_file = template_file
            self._template_env = template_env
            self.template = template
def _setup_template_file ( self , template_file_path ) : try : template_file = template_file_path template_env = get_environment_for ( template_file_path ) template = template_env . get_template ( os . path . basename ( template_file ) ) except : raise else : self . _template_file = template_file self . _template_env = template_env self . template = template
Setup self.template

        Parameters
        ----------
        template_file_path: str
            Document template file path.
Setup self . template