Skip to content

Commit

Permalink
add inline comment
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Jan 17, 2025
1 parent f896c78 commit 1883c72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esmerald/responses/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def __init__(
self.template = template_engine.get_template(template_name)
self.context = context or {}
content = self.template.render(**context)
# ensure template string is not mangled
if isinstance(content, str):
content = content.encode(self.charset)
super().__init__(
Expand Down

0 comments on commit 1883c72

Please sign in to comment.