Added inlinefunc, an inline text parser for custom dynamic functions,

as per #520.
This commit is contained in:
Griatch 2014-10-25 13:37:14 +02:00
parent ed52a0c101
commit 46edc6eef6
4 changed files with 207 additions and 1 deletions

View file

@ -347,6 +347,19 @@ TIME_DAY_PER_WEEK = 7
TIME_WEEK_PER_MONTH = 4
TIME_MONTH_PER_YEAR = 12
######################################################################
# Inlinefunc
######################################################################
# Evennia supports inline function preprocessing. This allows
# users to supply {func() ... {/func in text, performing dynamic
# text formatting and manipulation on the fly. If disabled, such
# inline functions will not be parsed.
INLINEFUNC_ENABLED = True
# Only functions defined globally (and not starting with '_') in
# these modules will be considered valid inlinefuncs. The list
# is loaded from left-to-right, same-named functions will overload
INLINEFUNC_MODULES = ["src.utils.inlinefunc"]
######################################################################
# Default Player setup and access
######################################################################