glamour/server

Types

pub type Options {
  Options(
    lang: String,
    title: option.Option(String),
    csp_nonce: option.Option(String),
    head: List(String),
    client_scripts: List(String),
    stream: Bool,
  )
}

Constructors

  • Options(
      lang: String,
      title: option.Option(String),
      csp_nonce: option.Option(String),
      head: List(String),
      client_scripts: List(String),
      stream: Bool,
    )
pub type Rendered {
  Rendered(html: String)
}

Constructors

  • Rendered(html: String)

Values

pub fn default_options() -> Options
pub fn render(
  spec: app.Spec(model, msg),
  model: model,
  options: option.Option(Options),
) -> Rendered
Search Document