We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fc9f37 commit 5f539ecCopy full SHA for 5f539ec
src/graphql_server/http/__init__.py
@@ -39,7 +39,7 @@ def simple_renderer(template: str, **values: str) -> str:
39
def get_var(match_obj: re.Match[str]) -> str:
40
var_name = match_obj.group(1)
41
if var_name is not None:
42
- return values.get(var_name, "")
+ return values.get(var_name) or tojson("")
43
return ""
44
45
pattern = r"{{\s*([^}]+)\s*}}"
0 commit comments