use super::*; #[derive(Boilerplate)] pub(crate) struct HomeHtml { pub(crate) inscriptions: Vec, } impl PageContent for HomeHtml { fn title(&self) -> String { "Ordinals".to_string() } } #[cfg(test)] mod tests { use super::*; #[test] fn html() { assert_regex_match!( HomeHtml { inscriptions: vec![inscription_id(1), inscription_id(2)], } .to_string() .unindent(), "

Latest Inscriptions

" .unindent(), ); } }