#NEWLINE# def GET( self ) : #NEWLINE# #INDENT# self . vars [ 'pluginCss' ] = [ ] #NEWLINE# self . vars [ 'pluginJs' ] = [ ] #NEWLINE# builtDir = os . path . join ( constants . STATIC_ROOT_DIR , 'clients' , 'web' , 'static' , 'built' , 'plugins' ) #NEWLINE# for plugin in ModelImporter . model ( 'setting' ) . get ( SettingKey . PLUGINS_ENABLED ) : #NEWLINE# #INDENT# if os . path . exists ( os . path . join ( builtDir , plugin , 'plugin.min.css' ) ) : #NEWLINE# #INDENT# self . vars [ 'pluginCss' ] . append ( plugin ) #NEWLINE# #UNINDENT# if os . path . exists ( os . path . join ( plugin , plugin , 'plugin.min.js' ) ) : #NEWLINE# #INDENT# self . vars [ 'pluginJs' ] . append ( plugin ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . indexHtml is None ) : #NEWLINE# #INDENT# self . indexHtml = mako . template . Template ( self . template ) . render ( ** self . vars ) #NEWLINE# #UNINDENT# return self . indexHtml