scriptorium/rendering/views/base

Types

The base view pre-renders some content once, so that it can be reused for every render.

pub type PreRendered {
  PreRendered(
    pages: Element(Nil),
    tags: Element(Nil),
    archives: Element(Nil),
  )
}

Constructors

  • PreRendered(
      pages: Element(Nil),
      tags: Element(Nil),
      archives: Element(Nil),
    )

Functions

pub fn generate(
  db: Database,
  config: Configuration,
) -> fn(Element(Nil), List(Element(Nil)), String) -> Element(Nil)
Search Document