Skip to content
/ nakai Public

An HTML generation library for building web apps with Gleam ✨

License

Notifications You must be signed in to change notification settings

aslilac/nakai

Repository files navigation

Nakai

Getting started

gleam add nakai
import nakai
import nakai/html.{type Node}
import nakai/attr.{type Attr}

pub fn header(attrs: List(Attr), text: String) -> Node {
  let attrs = [attr.class("text-xl weight-400"), ..attrs]
  html.h1_text(attrs, text)
}

pub fn app() -> String {
  header([], "Hello, from Nakai!")
  |> nakai.to_string()
}

About

An HTML generation library for building web apps with Gleam ✨

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages