code: def create_index_table(environ, envdir):
      ''' create an html table
      
      Parameters:
          environ (dict):
              A tree environment dictionary
          envdir (str):
              The filepath for the env directory
      Returns:
          An html table definition string
      '''
  
      table_header = 
      table_footer = """</tbody></table>"""
  
      # create table
      table = table_header
  
      # loop over the environment
      for section, values in environ.items():
          if section == 'default':
              continue
  
          for tree_name, tree_path in values.items():
              skipmsg = 'Skipping {0} for {1}'.format(tree_name, section)
              if '_root' in tree_name:
                  continue
  
              # create the src and target links
              src = tree_path
              link = os.path.join(envdir, tree_name.upper())
  
              # get the local time of the symlink
              try:
                  stattime = time.strftime('%d-%b-%Y %H:%M', time.localtime(os.stat(src).st_mtime))
              except OSError:
                  print("{0} does not appear to exist, skipping...".format(src))
                  _remove_link(link)
                  continue
  
              # skip the sas_base_dir
              if section == 'general' and 'sas_base_dir' in tree_name:
                  print(skipmsg)
                  continue
  
              # only create symlinks
              if section == 'general' and tree_name in ['cas_load', 'staging_data']:
                  # only create links here if the target exist
                  if os.path.exists(src):
                      make_symlink(src, link)
                  else:
                      print(skipmsg)
              else:
                  print('Processing {0} for {1}'.format(tree_name, section))
                  make_symlink(src, link)
              
              # create the table entry
              if os.path.exists(link):
                  table += '    <tr><td><a href="{0}/">{0}/</a></td><td>-</td><td>{1}</td></tr>\n'.format(tree_name.upper(), stattime)
  
      table += table_footer
      return table
docs: create an html table
      
      Parameters:
          environ (dict):
              A tree environment dictionary
          envdir (str):
              The filepath for the env directory
      Returns:
          An html table definition string