Hi
I am trying to migrate my current macros for the new preprocessor and I'm following the migration guide here: http://plantuml.com/preprocessing.
It says there that
!define should be replaced by return function
I used to be able to nest elements inside of elements created by macros:
!define boundary_def(label) rectangle label <<boundary_def>>
boundary_def("define") {
actor jim
}
However, I am not sure how I should do this with a function as the following:
!function $boundary_fun($e_label) return rectangle $e_label <<boundary_fun>>
$boundary_fun("function")
{
actor tim
}
gives me a syntax error:
Unknown variable rectangle