mercurial/templater.py
changeset 28695 cc103bd0dbf9
parent 28687 29c249dfb4ef
child 28696 efa192203623
equal deleted inserted replaced
28694:9a6fa1d93bc8 28695:cc103bd0dbf9
  1067                 if os.path.isfile(mapfile):
  1067                 if os.path.isfile(mapfile):
  1068                     return style, mapfile
  1068                     return style, mapfile
  1069 
  1069 
  1070     raise RuntimeError("No hgweb templates found in %r" % paths)
  1070     raise RuntimeError("No hgweb templates found in %r" % paths)
  1071 
  1071 
       
  1072 def loadfunction(ui, extname, registrarobj):
       
  1073     """Load template function from specified registrarobj
       
  1074     """
       
  1075     for name, func in registrarobj._table.iteritems():
       
  1076         funcs[name] = func
       
  1077 
  1072 # tell hggettext to extract docstrings from these functions:
  1078 # tell hggettext to extract docstrings from these functions:
  1073 i18nfunctions = funcs.values()
  1079 i18nfunctions = funcs.values()