#NEWLINE# def render( template , dest , **kwargs ) : #NEWLINE# #INDENT# 'Using jinja2, render `template` to the filename `dest`, supplying the\n\n    keyword arguments as template parameters.\n    ' #NEWLINE# template = environment . get_template ( template ) #NEWLINE# text = template . render ( ** f ) #NEWLINE# f = open ( dest , 'wb' ) #NEWLINE# f . write ( text . encode ( 'utf-8' ) ) #NEWLINE# f . close ( )