Skip to content
/ auk Public

A DSL for writing HTML using standard Rust syntax

License

Notifications You must be signed in to change notification settings

maxdeviant/auk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auk

crates.io docs.rs crates.io

Auk is an eDSL for writing HTML using standard Rust syntax.

Usage

use auk::*;
use auk::renderer::HtmlElementRenderer;

let content = html()
    .child(head().child(title().child("Auk")))
    .child(body().child(h1().child("Hello from Auk!")));

let rendered_html = HtmlElementRenderer::new()
    .render_to_string(&content)
    .unwrap();

About

A DSL for writing HTML using standard Rust syntax

Resources

License

Stars

Watchers

Forks

Packages

No packages published