<s> import os <EOL> from flask . ext . assets import Bundle <EOL> from aleph . core import assets <EOL> base_assets = Bundle ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> filters = '<STR_LIT>' , <EOL> output = '<STR_LIT>' <EOL> ) <EOL> angular_assets = Bundle ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> filters = '<STR_LIT>' , <EOL> output = '<STR_LIT>' <EOL> ) <EOL> css_assets = Bundle ( <EOL> '<STR_LIT>' , <EOL> depends = [ '<STR_LIT>' ] , <EOL> filters = '<STR_LIT>' , <EOL> output = '<STR_LIT>' <EOL> ) <EOL> def compile_assets ( app ) : <EOL> js_files = [ ] <EOL> js_path = os . path . join ( app . static_folder , '<STR_LIT>' ) <EOL> for ( root , dirs , files ) in os . walk ( js_path ) : <EOL> for file_name in sorted ( files ) : <EOL> file_path = os . path . relpath ( os . path . join ( root , file_name ) , <EOL> app . static_folder ) <EOL> js_files . append ( file_path ) <EOL> app_assets = Bundle ( * js_files , <EOL> filters = '<STR_LIT>' , <EOL> output = '<STR_LIT>' ) <EOL> assets . _named_bundles = { } <EOL> assets . register ( '<STR_LIT>' , base_assets ) <EOL> assets . register ( '<STR_LIT>' , angular_assets ) <EOL> assets . register ( '<STR_LIT>' , app_assets ) <EOL> assets . register ( '<STR_LIT>' , css_assets ) </s>
