Commit graph

36 commits

Author SHA1 Message Date
0167d3cea3 Fix html comment rendering
Apparently I just completely forgot to actually include <!-- and -->,
and instead just rendered the comment contents.
2024-12-20 16:51:11 +01:00
ec7bc571b1 Add Rel attr 2024-12-19 18:02:26 +01:00
7290a23c85 Simplify usage example 2024-12-17 01:44:41 +01:00
7b9fae31cd Bump version to 0.1.2 2024-12-14 18:09:50 +01:00
ceefa426f6 Add html::attr 2024-12-14 13:05:56 +01:00
abd0cc6247 Add Attr::set
The name "set" makes more sense compared to "append" than "new". "new"
only exists because originally there was no "append".
2024-12-14 12:37:46 +01:00
099f07ebac Fix grammar mistake 2024-12-09 00:24:46 +01:00
e172161b1e Bump version to 0.1.1 2024-12-08 00:24:39 +01:00
cb96987115 Tweak readme and lib docs 2024-12-08 00:20:51 +01:00
4a4225f72c Implement From<&String> for Content 2024-12-08 00:07:28 +01:00
6f0ae129fa Add Element::into_document
It's more convenient in some cases and also makes the example code less
"misleading": Now the string represents a full, correct HTML document.
2024-12-08 00:07:28 +01:00
b377ee2936 Include js helper function in README 2024-12-08 00:07:28 +01:00
57e5e68270 Bump version to 0.1.0 2024-12-02 21:21:18 +01:00
f4b3588ae1 Switch from axum to axum-core and http
This will hopefully keep dependency churn lower.
2024-12-02 21:11:59 +01:00
cbc313ec52 Stop tracking Cargo.lock 2024-12-02 21:11:59 +01:00
1edd5927c2 Create changelog 2024-12-02 21:11:59 +01:00
af3c2deb7f Improve documentation of html, svg, mathml modules 2024-12-02 18:56:41 +01:00
ccde0556f8 Fix svg::use tag 2024-12-02 18:56:27 +01:00
9e202402b2 Implement ElementComponent for larger tuples
If the length is still not sufficient, tuples can be stacked inside each
other.
2024-12-02 18:21:10 +01:00
55f228587f Add licenses and crate info 2024-12-02 18:14:37 +01:00
cfd83df713 Document library 2024-12-02 18:14:35 +01:00
cb2a6da25c Make some Attrs append instead of replace 2024-12-02 18:07:39 +01:00
3503cc7e9e Make error path more readable 2024-12-02 17:27:19 +01:00
0294d3435c Make inlay hints less annoying 2024-11-27 18:09:56 +01:00
af61307c9f Fix element capitalization normalization 2024-11-27 18:09:56 +01:00
a6fd12510d Improve element building API 2024-11-27 18:09:56 +01:00
c4b3a279cc Make adding multiple children nicer 2024-11-27 01:33:11 +01:00
924679e5ac Derive clone for main types 2024-11-27 00:26:26 +01:00
956b077f04 Make error message slightly more readable 2024-11-27 00:26:26 +01:00
2b1fefe882 Add axum support 2024-11-27 00:26:26 +01:00
d18f9d2171 Add Document struct 2024-11-27 00:14:27 +01:00
bc7a659303 Add custom data attribute support 2024-11-26 23:46:25 +01:00
43b3236d3b Add svg and mathml support 2024-11-26 23:45:46 +01:00
cc3f85e6e1 Model and render elements 2024-11-26 22:01:36 +01:00
c8d9cf16f5 Add some lints 2024-11-24 20:57:55 +01:00
fbe3a26395 Create project 2024-11-24 19:43:41 +01:00