@blueprint.app_template_filter('<STR_LIT>')<EOL>def format_item(item, template, name='<STR_LIT>'):
ctx = {name: item}<EOL>return render_template_to_string(template, **ctx)<EOL>
Render a template to a string with the provided item in context.