pub fn write_compiled(&self, compiled_files: HashMap<String, String>) {
            let css_dir = &*self.context().css_dir;

            for (sass_file_name, compiled) in compiled_files {
                let mut sass_file_name_path = PathBuf::new();

                sass_file_name_path.push(sass_file_name);
                sass_file_name_path.set_extension("css");

                let css_file_path = css_dir.join(sass_file_name_path);

                let mut file = fs::File::create(&css_file_path)
                    .expect(format!("Failed to create css file: '{:?}'", css_file_path).as_str());

                file.write_all(compiled.as_bytes())
                    .expect(format!("Failed to write file: {:?}", css_file_path).as_str());
            }
        }
/// Writes all compiled files to `css_dir`
Writes all compiled files to `css_dir`
Writes all compiled files to ` css_dir `
pub fn write_compiled(&self, compiled_files: HashMap<String, String>) {
            let css_dir = &*self.context().css_dir;
            for (sass_file_name, compiled) in compiled_files {
                let mut sass_file_name_path = PathBuf::new();
                sass_file_name_path.push(sass_file_name);
                sass_file_name_path.set_extension("css");
                let css_file_path = css_dir.join(sass_file_name_path);
                let mut file = fs::File::create(&css_file_path)
                    .expect(format!("Failed to create css file: '{:?}'", css_file_path).as_str());
                file.write_all(compiled.as_bytes())
                    .expect(format!("Failed to write file: {:?}", css_file_path).as_str());
            }
        }
pub fn write_compiled ( & self , compiled_files : HashMap < String , String > ) { let css_dir = & * self . context ( ) . css_dir ; for ( sass_file_name , compiled ) in compiled_files { let mut sass_file_name_path = PathBuf :: new ( ) ; sass_file_name_path . push ( sass_file_name ) ; sass_file_name_path . set_extension ( " " ) ; let css_file_path = css_dir . join ( sass_file_name_path ) ; let mut file = fs :: File :: create ( & css_file_path ) . expect ( format ! ( " " css_file_path ) . as_str ( ) ) ; file . write_all ( compiled . as_bytes ( ) ) . expect ( format ! ( " " css_file_path ) . as_str ( ) ) ; } }
Writes all compiled files to `css_dir`
Writes all compiled files to ` css_dir `
&self
compiled_files
HashMap<String, String>
&self
compiled_files
HashMap<String, String>