Skip to main content
Glama
toml.md775 B
# TOML ## `toml` Reads structured data from a TOML file. The file must contain a valid TOML table. TOML tables will be converted into Typst dictionaries, and TOML arrays will be converted into Typst arrays. Strings, booleans and datetimes will be converted into the Typst equivalents and numbers will be converted to floats or integers depending on whether they are whole numbers. The TOML file in the example consists of a table with the keys `title`, `version`, and `authors`. # Example ```example #let details = toml("details.toml") Title: #details.title \ Version: #details.version \ Authors: #(details.authors .join(", ", last: " and ")) ``` ## Parameters ### source *(required)* A [path]($syntax/#paths) to a TOML file or raw TOML bytes. ## Returns - any

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FujishigeTemma/typst-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server