preprocessorV2 in class diagrams

0 votes
asked Jun 7, 2019 in Question / help by Hallo-du-da (120 points)
Hello,

Is the new preprocessor working for you in class diagrams? I tried to use variables but get syntax errors and if use some think like

center footer %date("yyyy.MM.dd 'at' HH:mm") %filename()

This is printed in plain text.

But but !include works, so the preprocessor is doing something.

Thanks for feedback :)
commented Jun 7, 2019 by Serge Wenger Work (15,620 points)
Please provide a small but complete example

1 Answer

0 votes
answered Jun 7, 2019 by plantuml (294,960 points)

Can you double-check your version ?

@startuml
version
@enduml

The following example is working for us:

@startuml
center footer %date("yyyy.MM.dd 'at' HH:mm") %filename()
class bar
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuKfEpIj9BL98oyy7KQefYIMf6agLGA3dwwkNagAWdbYYhk3XOPMRgwIfe9gMcPEQbvYRgg79bPoJM5oia9HOnEMGcfS2D0e0

Thanks

...