scriptorium/rendering/database

The render database stores the rendered posts and pages.

Types

pub type RenderDatabase {
  RenderDatabase(
    single_posts: List(RenderedSinglePost),
    pages: List(RenderedPage),
    index_pages: List(RenderedListPage),
    tag_pages: Dict(String, List(RenderedListPage)),
    year_pages: Dict(Int, List(RenderedListPage)),
    month_pages: Dict(#(Int, Month), List(RenderedListPage)),
    feed: Element(Nil),
  )
}

Constructors

  • RenderDatabase(
      single_posts: List(RenderedSinglePost),
      pages: List(RenderedPage),
      index_pages: List(RenderedListPage),
      tag_pages: Dict(String, List(RenderedListPage)),
      year_pages: Dict(Int, List(RenderedListPage)),
      month_pages: Dict(#(Int, Month), List(RenderedListPage)),
      feed: Element(Nil),
    )

    Arguments

    • single_posts

      Individual posts.

    • pages

      Individual pages.

    • index_pages

      “Index” list pages, meaning the main post flow.

    • tag_pages

      Tag list pages.

    • year_pages

      Year list pages.

    • month_pages

      Month list pages.

    • feed

      The feed (corresponding to the main post flow).

A list page’s page number and the page’s content.

pub type RenderedListPage {
  ListPage(page: Int, content: Element(Nil))
}

Constructors

  • ListPage(page: Int, content: Element(Nil))

A page and its rendered content.

pub type RenderedPage {
  RenderedPage(page: Page, content: Element(Nil))
}

Constructors

  • RenderedPage(page: Page, content: Element(Nil))

A post and its rendered content.

pub type RenderedSinglePost {
  RenderedSinglePost(orig: Post, content: Element(Nil))
}

Constructors

  • RenderedSinglePost(orig: Post, content: Element(Nil))
Search Document