mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 22:47:16 +02:00
Added inlinefunc, an inline text parser for custom dynamic functions,
as per #520.
This commit is contained in:
parent
ed52a0c101
commit
46edc6eef6
4 changed files with 207 additions and 1 deletions
|
|
@ -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
|
||||
######################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue