implement rendering on medium-formatted data
This commit is contained in:
15
templates/matcher.rs
Normal file
15
templates/matcher.rs
Normal 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),
|
||||
// <. } .>
|
||||
//
|
Reference in New Issue
Block a user