Tweak readme and lib docs
This commit is contained in:
parent
4a4225f72c
commit
cb96987115
2 changed files with 12 additions and 4 deletions
12
README.md
12
README.md
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -67,6 +67,10 @@
|
|||
//! ```
|
||||
//!
|
||||
//! [axum]: https://crates.io/crates/axum
|
||||
//!
|
||||
//! ## But what about that small helper function?
|
||||
//!
|
||||
//! See the readme for more details.
|
||||
|
||||
#[cfg(feature = "axum")]
|
||||
mod axum;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue