Skip to content
Snippets Groups Projects
Verified Commit 761cdf22 authored by Eduardo Trujillo's avatar Eduardo Trujillo
Browse files

refactor(files): Box template rendering errors

parent 2b0c661f
No related branches found
No related tags found
1 merge request!3v2.0.0
......@@ -62,17 +62,19 @@ pub fn render_server_page(
title: &str,
subtitle: &str,
content: &str,
) -> Result<String, handlebars::TemplateRenderError> {
) -> Result<String, Box<handlebars::TemplateRenderError>> {
let reg = Handlebars::new();
reg.render_template(
PAGE_TEMPLATE,
&json!({
"title": title,
"subtitle": subtitle,
"content": content,
"pkg_name": PKG_NAME,
"pkg_version": PKG_VERSION,
}),
)
reg
.render_template(
PAGE_TEMPLATE,
&json!({
"title": title,
"subtitle": subtitle,
"content": content,
"pkg_name": PKG_NAME,
"pkg_version": PKG_VERSION,
}),
)
.map_err(Box::new)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment