implement rendering on medium-formatted data

This commit is contained in:
realaravinth
2021-10-31 22:26:42 +05:30
parent 63bd10688c
commit f0853a4a64
9 changed files with 333 additions and 68 deletions

15
templates/matcher.rs Normal file
View File

@@ -0,0 +1,15 @@
match p.type_.as_str() {
"IMG" => {
include!("./img.html");
},
_ => unimplemented!(),
}
//<. match p.type_ { .>
// <. "IMG" => { .>
// <. include!("./img.html") .>
// <. }, .>
// <. _ => log::error("Unable to find paragraph render class. Post ID: {}. Paragraph item {:?}", id, p),
// <. } .>
//