Patch_Hawk / patchhawk /data /benign /io_template.py
RAMCr7's picture
Final patch
58f6308
raw
history blame contribute delete
236 Bytes
def render_template(template, context):
"""Simple template rendering replacing {{key}}."""
result = template
for key, value in context.items():
result = result.replace(f"{{{{{key}}}}}", str(value))
return result