diff options
Diffstat (limited to 'templates-neo/src/main.rs')
-rw-r--r-- | templates-neo/src/main.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/templates-neo/src/main.rs b/templates-neo/src/main.rs deleted file mode 100644 index d374e3f..0000000 --- a/templates-neo/src/main.rs +++ /dev/null @@ -1,18 +0,0 @@ -#![recursion_limit = "512"] -use std::io::Write; - -use kittybox_html::mf2::Entry; - -fn main() { - let mf2 = serde_json::from_reader::<_, microformats::types::Item>(std::io::stdin()).unwrap(); - let entry = Entry::try_from(mf2).unwrap(); - - let mut article = html::content::Article::builder(); - entry.build(&mut article); - - let mut stdout = std::io::stdout().lock(); - stdout - .write_all(article.build().to_string().as_bytes()) - .unwrap(); - stdout.write_all(b"\n").unwrap(); -} |