I'm creating a library and currently using !define like below so that I can control the style and such apart from the layout. The docs state that !define is deprecated and not to use it. How would this be ported to function or procedure. I've tried a few ways and can't get it to work.
@startuml
!define Thing(label) entity label << (T, white) >>
!define SubThing(label, type) <i>label</i> : type
Thing("foo"){
SubThing("bar", "string")
SubThing("bar2", "string")
SubThing("bar3", "object")
}
@enduml