Use strings instead of subtemplates

This commit is contained in:
Matthias
2019-11-21 19:28:53 +01:00
parent f26c40082d
commit f23f659ac5
3 changed files with 12 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ def plural(num, singular: str, plural: str = None) -> str:
return singular if (num == 1 or num == -1) else plural or singular + 's'
def render_template(templatefile: str, arguments: dict):
def render_template(templatefile: str, arguments: dict = {}):
from jinja2 import Environment, PackageLoader, select_autoescape