Skip to content

Commit

Permalink
wrap with str
Browse files Browse the repository at this point in the history
  • Loading branch information
vegu committed Aug 30, 2023
1 parent b8778df commit dc9d0aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/netom/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def render_template_slug(context, value, slug):
Does not get local variables.
"""
template = context.eval_ctx.environment.from_string(value)
template = context.eval_ctx.environment.from_string(str(value))
vars = dict(slug=slug)
# print(f"parent {context.parent}")
# print(f"VARS {context.vars.items()}")
Expand All @@ -52,7 +52,7 @@ def render_template(context, value):
Does not get local variables.
"""
template = context.eval_ctx.environment.from_string(value)
template = context.eval_ctx.environment.from_string(str(value))
# print(f"parent {context.parent}")
# print(f"VARS {context.vars.items()}")
# print(f"ENV {context.get_all()}")
Expand Down

0 comments on commit dc9d0aa

Please sign in to comment.