AshTypst.Resource.Render (ash_typst v0.2.0)

Copy Markdown View Source

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

A render entity declares an action that compiles a template and exports it in the specified format (:pdf, :svg, or :html). It can include arguments, a read sub-entity to fetch resource data, pdf_options for PDF-specific settings, and preparations/validations.

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

Summary

Types

t()

@type t() :: %AshTypst.Resource.Render{
  __identifier__: term(),
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  arguments: [Ash.Resource.Actions.Argument.t()],
  data_file: String.t(),
  description: String.t() | nil,
  format: :pdf | :svg | :html,
  name: atom(),
  page: non_neg_integer() | nil,
  pdf_options: [AshTypst.Resource.Render.PdfOptions.t()],
  preparations: [Ash.Resource.Preparation.t()],
  read: [AshTypst.Resource.Render.Read.t()],
  template: atom(),
  transaction?: boolean()
}