Skip to content

Commit

Permalink
feat(shokunin): decoupling the template utility fun
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Sep 8, 2023
1 parent 505baa6 commit 31829ac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 5 additions & 2 deletions src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ use crate::{
txt::create_txt_data,
},
navigation::generate_navigation,
template::{render_page, PageOptions},
utilities::{file::add, write::write_files},
utilities::{
file::add,
template::{render_page, PageOptions},
write::write_files
},
};
use std::{error::Error, fs, path::Path, collections::HashMap};

Expand Down
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,6 @@ pub mod navigation;
/// The `parser` module contains functions for parsing command-line
/// arguments and options.
pub mod process;

/// The `template` module renders the HTML content using the pre-defined
/// template.
pub mod template;

/// The `utilities` module contains utility functions.
pub mod utilities;

Expand Down
4 changes: 4 additions & 0 deletions src/utilities/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@
/// The `serve` module contains functions for the development server.
pub mod serve;

/// The `template` module renders the HTML content using the pre-defined
/// template.
pub mod template;

/// The `write` module contains functions for writing files.
pub mod write;
File renamed without changes.

0 comments on commit 31829ac

Please sign in to comment.