def _setup_template_file(self, template_file_path):
try:<EOL><INDENT>template_file = template_file_path<EOL>template_env = get_environment_for(template_file_path)<EOL>template = template_env.get_template(os.path.basename(template_file))<EOL><DEDENT>except:<EOL><INDENT>raise<EOL><DEDENT>else:<EOL><INDENT>self._template_file = template_file<EOL>self._template_env = template_env<EOL>self.template = template<EOL><DEDENT>
Setup self.template

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