d2 icon indicating copy to clipboard operation
d2 copied to clipboard

Define config parameters in d2 file

Open rasmi opened this issue 3 years ago • 1 comments

It would be nice to be able to define certain config parameters such as the layout engine within a d2 file itself.

rasmi avatar Nov 29 '22 22:11 rasmi

Oh interesting. Within a d2 file itself... hmm, i can't see the benefit, i think we should use standard config languages for configs. https://github.com/terrastruct/d2/issues/108

alixander avatar Nov 29 '22 22:11 alixander

i totally misunderstood. i thought this was asking for using D2 as a separate configuration file. Upon revisiting, I now understand this to be defining D2 configs in the D2 script file itself. We'll combine into https://github.com/terrastruct/d2/issues/410, ty @rasmi

alixander avatar Dec 24 '22 21:12 alixander

Awesome, thank you!

rasmi avatar Dec 24 '22 22:12 rasmi