mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
swap to tera in place of handlebars
This commit is contained in:
parent
76c75a40d9
commit
ee48eae327
25 changed files with 407 additions and 184 deletions
|
@ -29,7 +29,10 @@ pub fn render_basic_link_list(
|
|||
title: &str,
|
||||
) -> eyre::Result<String> {
|
||||
let data = LinkTemplateData { links, title };
|
||||
let out = builder.reg.render("basic-link-list", &data)?;
|
||||
let out = builder.tera.render(
|
||||
"basic-link-list.tera",
|
||||
&tera::Context::from_serialize(data)?,
|
||||
)?;
|
||||
let out = builder.build_page_raw(
|
||||
PageMetadata {
|
||||
title: Some(title.to_owned()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue