[−][src]Function hugo_to_json::convert_to_json_and_write
pub fn convert_to_json_and_write(
contents_directory: PathBuf,
output_location: Option<PathBuf>
) -> Result<(), HugotoJsonError>
Converts a Hugo contents directory to JSON and writes it to a given file location. The file will be created if it doesn't exist