Emii Tatsuo
4ba099f947
Outsource document building to the gemtext crate
...
This change is still pending on some of my PRs being merged to main in the gemtext repository. Please see:
=> https://tulpa.dev/cadey/maj/pulls/12 Add conversion traits to Builder
=> https://tulpa.dev/cadey/maj/pulls/13 Add a `blank_line()` method to `Builder`
=> https://tulpa.dev/cadey/maj/pulls/14 Accept an Option<&str> as a link name
=> https://tulpa.dev/cadey/maj/pulls/15 Add support for alt-text in preformatted blocks
Once these changes are merged, the dependency on gemtext should be moved to the crates.io version
2020-11-30 14:27:58 -05:00
Emi Tatsuo
5254c17e36
Rework Request::success methods
2020-11-20 14:18:11 -05:00
Emi Tatsuo
3296d00ec3
Add From<Borrow<Document>> to Response
...
This allows users to call &mut Document.into() in order to create a response, so that you
can do it right in the middle of one of those builder call chain thingies
2020-11-20 09:51:37 -05:00
Emi Tatsuo
435330b415
Made Request::document a bit more generic
...
Also how did I not know about the Borrow trait until now???
2020-11-20 09:40:57 -05:00
Emi Tatsuo
0bcce9fd6f
Appease clippy
...
Please my compiler is so angry ;-;
2020-11-19 18:03:10 -05:00
panicbit
f2b27665c2
correctly ignore doctest
2020-11-18 23:01:10 +01:00
panicbit
931c3fbbc2
add temporary redirects and bad requests
2020-11-18 21:26:27 +01:00
Emi Tatsuo
6a78b2f31a
Added Response::success_with_body
2020-11-17 21:41:18 -05:00
panicbit
0425bf2cf3
add Cowy util trait
2020-11-14 22:46:29 +01:00
panicbit
0c05d6d162
implement document API
2020-11-14 09:55:21 +01:00
panicbit
28162bde5c
move split types module into submodules
2020-11-14 04:43:29 +01:00