use splices for template rendering

This commit is contained in:
glyph 2022-03-21 16:41:52 +02:00
parent 85231a20c7
commit 3a7b499742
2 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,9 @@ use crate::utils::sbot;
// HTML RENDERING FOR ELEMENTS
// TODO: refactor this to make better use of splices
// https://maud.lambda.xyz/splices-toggles.html
fn downtime_element(downtime: &Option<String>) -> Markup {
match downtime {
Some(time) => {