Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 36 additions & 80 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions templating/fluent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rust-version.workspace = true
actix-web.workspace = true
actix-web-lab.workspace = true
env_logger.workspace = true
fluent-templates = { version = "0.9", features = ["handlebars"] }
handlebars = { version = "5", features = ["dir_source"] }
fluent-templates = { version = "0.15", features = ["handlebars"] }
handlebars = { version = "6", features = ["dir_source"] }
serde.workspace = true
serde_json.workspace = true
11 changes: 5 additions & 6 deletions templating/fluent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use actix_web::{
};
use actix_web_lab::extract::Path;
use fluent_templates::{FluentLoader, Loader as _, static_loader};
use handlebars::{DirectorySourceOptions, Handlebars};
use handlebars::{DirectorySourceOptionsBuilder, Handlebars};
use serde_json::json;

mod lang_choice;
Expand Down Expand Up @@ -62,11 +62,10 @@ async fn main() -> io::Result<()> {
handlebars
.register_templates_directory(
"./templates",
DirectorySourceOptions {
tpl_extension: ".html".to_owned(),
hidden: false,
temporary: false,
},
DirectorySourceOptionsBuilder::default()
.tpl_extension(".html")
.build()
.unwrap(),
)
.unwrap();

Expand Down
Loading