hgext/__init__.py
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sun, 13 Mar 2016 05:17:06 +0900
changeset 28539 119702a8b415
parent 28450 155e3308289c
child 43076 2372284d9457
permissions -rw-r--r--
templatekw: use templatekeyword to mark a function as template keyword Using decorator can localize changes for adding (or removing) a template keyword function in source code. This patch also removes leading ":KEYWORD:" part in help document of each keywords, because using templatekeyword makes it useless. For similarity to decorator introduced by subsequent patches, this patch uses 'templatekeyword' instead of 'keyword' as a decorator name, even though the former is a little redundant in 'templatekw.py'. file name reason =================== ================= ================================== templatekw.py templatekeyword for similarity to others templatefilters.py templatefilter 'filter' hides Python built-in one templaters.py templatefunc 'func' is too generic

from __future__ import absolute_import
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)