#Is it possible to reference environment variables?

7 messages · Page 1 of 1 (latest)

runic socket
#

I dont think thats supported but you can load data from json file

pure adder
#

template support paramaters isn’t that enough? these can be set individually using #set

red imp
#

Open a suggestion thread in #1057612604853465130 if you want

pure adder
#

that would be a nice feature

loud remnant
#

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

humble halo
#

Maybe a better solution - pass variables with cli arguments, like typst -v=MY_VAR=value file.typ

red imp
#

Or even pass an env file