templater: pull in functions defined in templatefilters
authorMatt Mackall <mpm@selenic.com>
Mon, 24 Sep 2012 15:28:04 -0500
changeset 17637 02d2166ef5f1
parent 17636 ce18dbcd91c8
child 17638 e2711975be00
templater: pull in functions defined in templatefilters
mercurial/templater.py
--- a/mercurial/templater.py	Mon Sep 24 15:26:56 2012 -0500
+++ b/mercurial/templater.py	Mon Sep 24 15:28:04 2012 -0500
@@ -192,6 +192,9 @@
     if n in funcs:
         f = funcs[n]
         return (f, args)
+    if n in templatefilters.funcs:
+        f = templatefilters.funcs[n]
+        return (f, args)
     if n in context._filters:
         if len(args) != 1:
             raise error.ParseError(_("filter %s expects one argument") % n)