+ println!("{}", html);
+
+ let source = current_dir()?;
+ let source_name = source.file_name().unwrap().to_string_lossy();
+ let parent = source.parent().unwrap();
+ let destination_name = format!("{}_html", source_name);
+ let destination = parent.join(destination_name);
+
+ // Step 1. Identify the files
+ let files = find_files(&source);
+
+ // Step 2. Prepare the target priority
+ match remove_dir_all(&destination) {
+ _ => {}
+ };
+ create_dir_all(&destination)?;
+
+ println!("Found {} files", files.len());
+
+ // Step 3. Load the layout
+ let mut file_handler = FileHandler::default();
+ file_handler.get_layout_or_panic(&files);
+
+ // Step 4. Process all files
+ file_handler.handle_all(&source, &destination, &files);
+ Ok(())