chore: Migrate from rinja to askama
This commit is contained in:
parent
301ae89b01
commit
a62b6ff43c
3 changed files with 55 additions and 56 deletions
|
|
@ -9,7 +9,7 @@ license.workspace = true
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
rinja = { version = "0.3", features = ["serde_json"] }
|
||||
askama = { version = "0.13", features = ["serde_json"] }
|
||||
blue-build-recipe = { version = "=0.9.10", path = "../recipe" }
|
||||
blue-build-utils = { version = "=0.9.10", path = "../utils" }
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use colored::control::ShouldColorize;
|
|||
use log::{debug, error, trace, warn};
|
||||
use uuid::Uuid;
|
||||
|
||||
pub use rinja::Template;
|
||||
pub use askama::Template;
|
||||
|
||||
#[derive(Debug, Clone, Template, Builder)]
|
||||
#[template(path = "Containerfile.j2", escape = "none", whitespace = "minimize")]
|
||||
|
|
@ -147,7 +147,7 @@ fn should_color() -> bool {
|
|||
|
||||
mod filters {
|
||||
#[allow(clippy::unnecessary_wraps)]
|
||||
pub fn replace<T>(input: T, from: char, to: &str) -> rinja::Result<String>
|
||||
pub fn replace<T>(input: T, from: char, to: &str) -> askama::Result<String>
|
||||
where
|
||||
T: std::fmt::Display,
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue