#NEWLINE# def __init__( self , node , **options ) : #NEWLINE# #INDENT# self . options = self #NEWLINE# self . node = node #NEWLINE# self . hasCompiledDoctype = False #NEWLINE# self . hasCompiledTag = False #NEWLINE# self . pp = options . get ( 'pretty' , True ) #NEWLINE# self . debug = ( options . get ( 'compileDebug' , False ) is not False ) #NEWLINE# self . filters . update ( options . get ( 'filters' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . doctypes . update ( options . get ( 'doctypes' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . selfClosing . extend ( options . get ( 'selfClosing' , [ ] ) ) #NEWLINE# self . autocloseCode . extend ( options . get ( 'autocloseCode' , [ ] ) ) #NEWLINE# self . inlineTags . extend ( options . get ( 'inlineTags' , [ ] ) ) #NEWLINE# self . useRuntime = options . get ( 'useRuntime' , True ) #NEWLINE# self . extension = ( options . get ( 'extension' , None ) or '.jade' ) #NEWLINE# self . indents = 0 #NEWLINE# self . doctype = None #NEWLINE# self . terse = False #NEWLINE# self . xml = False #NEWLINE# self . mixing = 0 #NEWLINE# self . variable_start_string = options . get ( 'variable_start_string' , '{{' ) #NEWLINE# self . variable_end_string = options . get ( 'variable_end_string' , '}}' ) #NEWLINE# if ( 'doctype' in self . options ) : #NEWLINE# #INDENT# self . setDoctype ( options [ 'doctype' ] ) #NEWLINE# #UNINDENT# self . instring = False