mirror of
https://github.com/norohind/SquadsActivityMonitor.git
synced 2025-04-13 05:17:12 +03:00
fix regexp for templates_engine, dont be greedy
This commit is contained in:
parent
3d22b716bd
commit
163c5a4a87
@ -7,8 +7,8 @@ from os.path import join
|
|||||||
import re
|
import re
|
||||||
templates_dir = 'templates'
|
templates_dir = 'templates'
|
||||||
|
|
||||||
variable_pattern: re.Pattern = re.compile(r'\{\{ .* }}')
|
variable_pattern: re.Pattern = re.compile(r'{{ .*? }}')
|
||||||
include_pattern: re.Pattern = re.compile(r'\{\{ @.* }}')
|
include_pattern: re.Pattern = re.compile(r'{{ @.*? }}')
|
||||||
|
|
||||||
|
|
||||||
def render(template_name: str, context: dict):
|
def render(template_name: str, context: dict):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user