moving copy_static_files to Template