xxxxxxxxxx
from jinja2 import Template
def render_template(template_string, data):
"""
Render a Jinja2 template with the provided data.
Args:
template_string (str): The Jinja2 template as a string.
data (dict): The data to pass to the template.
Returns:
str: The rendered template output.
"""
template = Template(template_string)
rendered_output = template.render(data)
return rendered_output