API Reference Typsty v#0.1.0

Copy Markdown View Source

Modules

Render Typst documents to PDF, PNG and SVG, with Elixir data passed to the template as Typst values, in its assigns dictionary.

Reusable parts of documents, such as tables, letterheads, headers and footers, written as Typst functions that documents import.

An error or warning reported by Typst.

Converts structs into data that can be passed to a template.

A mix format plugin that formats ~TYPST sigils and .typ files with typstyle.

A pool of worker processes that render documents outside of the BEAM.

Rendering a document failed.

A template has invalid Typst syntax, or a component breaks the rules for components (see Typsty.Component). Raised when a module with a ~TYPST sigil or a .typ template is compiled (or a component, with the .typ files in its folder), so that the problem fails the build instead of a render, and when mix format formats one with Typsty.Formatter.

Telemetry events for rendering documents.

A Typst template with the assigns to render it with.

Mix Tasks

Downloads Typst packages into your project, so that templates can import them.