def django_template_include(file_name, mako_context):
 dictionary = dict(mako_context)
 return loader.render_to_string(file_name, dictionary=dictionary)

def django_template_include ( file_name , mako_context ) : dictionary = dict ( mako_context ) return loader . render_to_string ( file_name , dictionary = dictionary )
this can be used within a mako template to include a django template in the way that a django-style {% include %} does .