From 93703674ffa0bf5ec76f89d946c3b7da97b68a40 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Sun, 22 Dec 2019 12:10:10 -0500 Subject: [PATCH] rename bunbunsearch.xml to macro style name --- src/main.rs | 8 +------- src/templates/{bunbunsearch.xml => opensearch.hbs} | 0 2 files changed, 1 insertion(+), 7 deletions(-) rename src/templates/{bunbunsearch.xml => opensearch.hbs} (100%) diff --git a/src/main.rs b/src/main.rs index b1b1c15..3a9d783 100644 --- a/src/main.rs +++ b/src/main.rs @@ -234,13 +234,7 @@ fn compile_templates() -> Handlebars { }; } - register_template!("index", "list"); + register_template!("index", "list", "opensearch"); - handlebars - .register_template_string( - "opensearch", - String::from_utf8_lossy(include_bytes!(concat!("templates/", "bunbunsearch.xml"))), - ) - .unwrap(); handlebars } diff --git a/src/templates/bunbunsearch.xml b/src/templates/opensearch.hbs similarity index 100% rename from src/templates/bunbunsearch.xml rename to src/templates/opensearch.hbs