Implement useful conversion strategies and clean up the code

This commit is contained in:
Kerollmops
2025-05-30 10:54:32 +02:00
committed by Clément Renault
parent 2821163b95
commit 50fafbbc8b
8 changed files with 224 additions and 203 deletions

View File

@ -64,7 +64,7 @@ fn default_template() -> liquid::Template {
new_template(default_template_text()).unwrap()
}
fn default_template_text() -> &'static str {
pub fn default_template_text() -> &'static str {
"{% for field in fields %}\
{% if field.is_searchable and field.value != nil %}\
{{ field.name }}: {{ field.value }}\n\