code: def _get_section_start_index(self, section):
          '''Get start of a section's content.
  
          :param section: string name of section
          :return: integer index of section's beginning
          :raises: NonextantSectionException
          '''
  
          sec_start_re = r'%s\s*\{' % section
  
          found = re.search(sec_start_re, self.template_str)
          if found:
              return found.end() - 1
  
          raise NonextantSectionException(
              'Section %s not found in template' % section
              f _get_section_start_index(self, section):
          '''Get start of a section's content.
  
          :param section: string name of section
          :return: integer index of section's beginning
          :raises: NonextantSectionException
          '''
  
          sec_start_re = r'%s\s*\{' % section
  
          found = re.search(sec_start_re, self.template_str)
          if found:
              return found.end() - 1
  
          raise NonextantSectionException(
              'Section %s not found in template' % section
              )
docs: Get start of a section's content.
  
          :param section: string name of section
          :return: integer index of section's beginning
          :raises: NonextantSectionException