Skip to content

maxdeviant/auk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auk

crates.io docs.rs crates.io

Auk is a DSL 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