AshTypst.Resource.Template (ash_typst v0.2.0)

Copy Markdown View Source

Struct and schema for the template entity in the typst DSL section.

A template defines the Typst source to compile, either as an inline markup string or as a source file path relative to the configured root directory. Templates can also declare static sys.inputs key/value pairs.

The ~TYPST sigil is auto-imported inside template blocks, so you can use it directly for inline markup without any manual imports.

For the full DSL reference, see AshTypst.Resource.typst.template.

Summary

Types

t()

@type t() :: %AshTypst.Resource.Template{
  __identifier__: term(),
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  inputs: %{required(String.t()) => String.t()} | nil,
  markup: String.t() | nil,
  name: atom(),
  source: String.t() | nil
}