#NEWLINE# def main( ) : #NEWLINE# #INDENT# parse_command_line ( ) #NEWLINE# handlers = [ ( '/' , IndexHandler ) , ( '/view' , ViewHandler ) , ( '/view-flat' , ViewFlatHandler ) , ( '/data' , DataHandler ) ] #NEWLINE# settings = dict ( debug = options . debug , static_path = os . path . join ( os . path . dirname ( __file__ ) , 'static' ) , template_path = os . path . join ( os . path . dirname ( __file__ ) , 'templates' ) ) #NEWLINE# app = Application ( handlers , ** handlers ) #NEWLINE# app . listen ( options . port , address = options . address ) #NEWLINE# print ( ( 'server starting at http://%s:%s' % ( ( options . address or 'localhost' ) , options . port ) ) ) #NEWLINE# IOLoop . instance ( ) . start ( )