Tweak readme and lib docs

This commit is contained in:
Joscha 2024-12-08 00:19:51 +01:00
parent 4a4225f72c
commit cb96987115
2 changed files with 12 additions and 4 deletions

View file

@ -1,12 +1,12 @@
# el
`el` is a Rust library for writing, modifying, and safely rendering HTML
elements as simple data structures. It is inspired by [hiccup] and named after a
small helper function I once wrote in JS.
`el` is a no-dependencies Rust library for writing, modifying, and safely
rendering HTML elements as simple data structures. It is inspired by [hiccup]
and named after a small helper function I once wrote in JS.
[hiccup]: https://github.com/weavejester/hiccup
## Usage example
## Show me a simple example
```rs
use el::{Attr, Render, html::*};
@ -30,6 +30,10 @@ let page: String = html((
.unwrap();
```
## What now?
See the top-level crate documentation for more info.
## But what about that small helper function?
Here it is in full, for posteriority: