##// END OF EJS Templates
templatekw: move loadkeyword() to bottom...
Yuya Nishihara -
r34993:e2fc6cec default
parent child Browse files
Show More
@@ -860,12 +860,6 def showtags(**args):
860 860 """List of strings. Any tags associated with the changeset."""
861 861 return shownames('tags', **args)
862 862
863 def loadkeyword(ui, extname, registrarobj):
864 """Load template keyword from specified registrarobj
865 """
866 for name, func in registrarobj._table.iteritems():
867 keywords[name] = func
868
869 863 @templatekeyword('termwidth')
870 864 def showtermwidth(repo, ctx, templ, **args):
871 865 """Integer. The width of the current terminal."""
@@ -891,5 +885,11 def showinstabilities(**args):
891 885 return showlist('instability', args['ctx'].instabilities(), args,
892 886 plural='instabilities')
893 887
888 def loadkeyword(ui, extname, registrarobj):
889 """Load template keyword from specified registrarobj
890 """
891 for name, func in registrarobj._table.iteritems():
892 keywords[name] = func
893
894 894 # tell hggettext to extract docstrings from these functions:
895 895 i18nfunctions = keywords.values()
General Comments 0
You need to be logged in to leave comments. Login now