import std/html.{type Html} import std/io import std/template.{html, render_xml, xml} fn card :: title: String body: Html -> Html { html`

{title}

{body}
` } pub fn main :: -> () / { let name = "Ada <&\">" io.println (html.render html`

Hello, {name}!

`) io.println (html.render html`

count: {2 + 3}, debug: {name:?}

`) let items: List = [html`
  • one
  • `, html`
  • two
  • `] io.println (html.render html``) io.println (html.render (card "T <&" html`

    body

    `)) io.println (render_xml xml``) io.println (html.render html`

    {"nested: " <> html.render html`x`}

    `) } //>

    Hello, Ada <&">!

    //>

    count: 5, debug: "Ada <&\">"

    //> //>

    T <&

    body

    //> //>

    nested: <b>x</b>