I'm writing some tests for a template that has a bunch of parameters to ensure I don't unknowingly break stuff as I develop on it. My current approach for testing with Quarto is to have a shell script where variables are passed via the command line, so I know exactly where it breaks (it's still for this template, but just to ensure that my Quarto interfacing files are also doing what they're supposed to). As far as I can see from https://github.com/typst/typst/issues/295, passing variables directly via the command line is not supported. Has anyone got a good way of testing a template that isn't just creating a bunch of separate typ files?
#Testing of template
7 messages ยท Page 1 of 1 (latest)
See typst compile --input X=Y which is visible in typst in the dictionary sys.inputs. So inputs from command line are possible
Oh, really?! That's great! (Then I'm not sure I understand what the above issue is about ๐ )
Also just found tytanic, I'll look more into that too!
it is about that, but it was resolved in 2023 ๐
can recommend! no idea how it works with quarto though
That doesn't matter, I'm testing each separately anyways ๐