Simplify usage example
This commit is contained in:
parent
7b9fae31cd
commit
7290a23c85
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ and named after a small helper function I once wrote in JS.
|
||||||
## Show me a simple example
|
## Show me a simple example
|
||||||
|
|
||||||
```rs
|
```rs
|
||||||
use el::{Attr, Render, html::*};
|
use el::{Render, html::*};
|
||||||
|
|
||||||
let page: String = html((
|
let page: String = html((
|
||||||
head((
|
head((
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
//! ## Usage example
|
//! ## Usage example
|
||||||
//!
|
//!
|
||||||
//! ```
|
//! ```
|
||||||
//! use el::{Attr, Render, html::*};
|
//! use el::{Render, html::*};
|
||||||
//!
|
//!
|
||||||
//! let page: String = html((
|
//! let page: String = html((
|
||||||
//! head((
|
//! head((
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue