#NEWLINE# def get_assets_as_html( self ) : #NEWLINE# #INDENT# ' Get a list of "<script>" and "<style>" html elements (as\n        strings) representing the assets. No reset.css is included, nor\n        any remote assets.\n        ' #NEWLINE# content_assets = [ ] #NEWLINE# for ( fname , code ) in self . _get_js_and_css_assets ( False ) . items ( ) : #NEWLINE# #INDENT# if ( not code . strip ( ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if fname . endswith ( '.css' ) : #NEWLINE# #INDENT# t = '<style>\n/* CSS for %s */\n%s\n</style>' #NEWLINE# content_assets . append ( ( t % ( fname , code ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# t = '<script>\n/* JS for %s */\n%s\n</script>' #NEWLINE# content_assets . append ( ( t % ( fname , code ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return content_assets