#NEWLINE# def __init__( self , params ) : #NEWLINE# #INDENT# params = params . copy ( ) #NEWLINE# options = params . pop ( 'OPTIONS' ) . copy ( ) #NEWLINE# super ( Jinja2 , self ) . __init__ ( params ) #NEWLINE# environment = options . pop ( 'environment' , 'jinja2.Environment' ) #NEWLINE# environment_cls = import_string ( environment ) #NEWLINE# if ( 'loader' not in options ) : #NEWLINE# #INDENT# options [ 'loader' ] = jinja2 . FileSystemLoader ( options . template_dirs ) #NEWLINE# #UNINDENT# options . setdefault ( 'autoescape' , True ) #NEWLINE# options . setdefault ( 'auto_reload' , settings . DEBUG ) #NEWLINE# options . setdefault ( 'undefined' , ( jinja2 . DebugUndefined if settings . DEBUG else jinja2 . Undefined ) ) #NEWLINE# self . env = environment_cls ( ** options )