gen-html

Crates.iogen-html
lib.rsgen-html
version
sourcesrc
created_at2024-11-02 23:24:28.292929
updated_at2024-11-02 23:24:28.292929
descriptionGenerate HTML using Rust
homepage
repositoryhttps://github.com/din0x/gen-html
max_upload_size
id1433256
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Robert PoznaƄski (din0x)

documentation

README

gen-html

gen-html is a library for generating HTML from Rust code.

Example

use gen_html::{content::h1, inline_text::a, text_content::{div, p}};

let html = div((
    h1("This is a title"),
    p("Some paragraph"),
    p(("You can put <a> inside <p> ", a("click me").href("https://some-url.com")))
));
Commit count: 38

cargo fmt