command
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Dec 13, 2025
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Passing values example
This example demonstrates how to pass values to Typst, which can be useful in rendering custom documents such as reports, invoices, and more.
How it works
This example follows the template pattern described in the Typst documentation.
Here is a short overview of the files:
- template.typ defines a Typst template function that constructs a document based on parameters.
- main.go shows how to convert/encode Go values into Typst markup, and how to call/render the template with these converted values.
- template-preview.typ also invokes the template while providing mock data.
This is useful when you want to preview, update or debug the template.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.