terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
16.43k stars 410 forks source link

import individual objects #2003

Closed alixander closed 1 month ago

alixander commented 1 month ago

This should be valid

models.d2

person1
person2

view.d2

@models.person1
alixander commented 1 month ago

nvm you'd just do person1: @model.people.person1