Can the !include directive be used where the parameter is a variable?
@startuml
!$v = "/Users/Projects/classA.puml"
!include $v
@enduml
(--------)
Hello @EGR,!include with variables is basically working, you can even combine it with fix parts like in following sample (click on the image and you see the source)Based on the /Users/.... it looks for me like a problem with local files.Does it work if you use the path directly?Did you check this link? How to pass a search path for "!include" files ? - PlantUML Q&A
@Kirchsth:Indeed, it is a path to a local file, on macOS.This path is just an example.I have tested the include from a variable, it works correctly if it is from Github.
Regards
EGR
Hi @EGRis following working?
@startuml!include "/Users/Projects/classA.puml"@enduml
!include "/Users/Projects/classA.puml"
BR Helmut