91f7972 58f6308
1
2
3
4
5
6
7
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