I'm working on a template file, and am wondering whether it's possible to import all the packages I'll want to use while writing the actual document, directly from the template.
I've tried simply importing my packages in the template, e.g.
template.typ:
#let conf(doc) = {
import "@preview/example:0.1.0": *
text(doc)
}
main.typ:
#import "template.typ": conf
#show: doc => conf(doc: doc)
#add(1, 2)
But so far no luck. I've also attempted moving the imports to a seperate file and includeing it or wildcard importing everything, but this doesn't seem to have worked either.
Is there currently any supported way of doing this?