preprocessorV2 in class diagrams

0 votes
asked Jun 7 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 by Serge Wenger Work (11,990 points)
Please provide a small but complete example

1 Answer

0 votes
answered Jun 7 by plantuml (203,680 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

...