You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 lines
283 B

"""Utils for emencia.django.newsletter"""
from django.template import Context, Template
def render_string(template_string, context={}):
"""Shortcut for render a template string with a context"""
t = Template(template_string)
c = Context(context)
return t.render(c)