diff --git a/uweb3/templateparser.py b/uweb3/templateparser.py index cd27a73e..ad5876c1 100644 --- a/uweb3/templateparser.py +++ b/uweb3/templateparser.py @@ -447,7 +447,7 @@ def SetEvalWhitelist( class Template(list): """Contained for template parts, allowing for rich content construction.""" - FUNCTION = re.compile(r"\{\{\s*(.*?)\s*\}\}") + FUNCTION = re.compile(r"\{\{\s*([\s\S]*?)\s*\}\}") # For a full tag syntax explanation, refer to the TAG regex in TemplateTag. TAG = re.compile( """