Astral.Layout (Astral v0.1.0)

Copy Markdown View Source

Renders page layouts with EEx assigns.

Summary

Functions

Render page HTML through an optional EEx layout.

Functions

render(content, layout, page, site)

@spec render(String.t(), String.t() | nil, Astral.Page.t(), Astral.Site.t()) ::
  {:ok, String.t()} | {:error, term()}

Render page HTML through an optional EEx layout.