#Is it possible to reference environment variables?
7 messages · Page 1 of 1 (latest)
template support paramaters isn’t that enough? these can be set individually using #set
Open a suggestion thread in #1057612604853465130 if you want
that would be a nice feature
I think this discussion might also have a place in the broader discussion regarding being able to execute scripts and security and stuff, as environment variables can contain personal info (e.g. database keys). Perhaps this could be restricted to env variables with a prefix (e.g. TYPST_), or maybe just toggled on and off via some option. Anyway, there is some room for design discussion here
Maybe a better solution - pass variables with cli arguments, like typst -v=MY_VAR=value file.typ
Or even pass an env file