Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The subs attribute should be honored #17

Closed
ggrossetie opened this issue Jul 18, 2020 · 0 comments · Fixed by #25
Closed

The subs attribute should be honored #17

ggrossetie opened this issue Jul 18, 2020 · 0 comments · Fixed by #25

Comments

@ggrossetie
Copy link
Contributor

Here's an example:

:action: hello

[plantuml,subs=+attributes]
----
alice -> bob : {action}
----

In the above example, {action} should be replaced/substituted by hello.
You can use the following code to do that:

subs = attrs['subs']
content = parent.apply_subs(content, parent.resolve_subs(subs)) if subs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant