Skip to content

Commit

Permalink
Replace tera with askama
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 23, 2024
1 parent f6eaee8 commit 6e7fa52
Show file tree
Hide file tree
Showing 53 changed files with 956 additions and 1,016 deletions.
251 changes: 46 additions & 205 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ tempfile = "3.1.0"
fn-error-context = "0.2.0"

# Templating
tera = { version = "1.5.0", features = ["builtins"] }
# tera = { version = "1.5.0", features = ["builtins"] }
askama = { path = "/home/imperio/rust/askama/askama" } # { git = "https://github.com/djc/askama" }
walkdir = "2"

# Date and Time utilities
Expand Down
10 changes: 5 additions & 5 deletions src/docbuilder/limits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const GB: usize = 1024 * 1024 * 1024;

#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
pub(crate) struct Limits {
memory: usize,
targets: usize,
timeout: Duration,
networking: bool,
max_log_size: usize,
pub memory: usize,
pub targets: usize,
pub timeout: Duration,
pub networking: bool,
pub max_log_size: usize,
}

impl Limits {
Expand Down
Loading

0 comments on commit 6e7fa52

Please sign in to comment.