Skip to content

vars in vars #2017

@alixander

Description

@alixander

this should work

vars: {
    Apple: {
        shape:circle
        label:Granny Smith
    }
    Cherry: {
        shape:circle
        label:Rainier Cherry
    }
    SummerFruit: {
        xx: ${Apple}   # Could not resolve
        cc: ${Cherry}  # Could not resolve
        xx -> cc
    }
}

x: ${Apple}   # ok
c: ${Cherry}  # ok
x -> c
sf: ${SummerFruit} # doesn't get this far
```d2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions