Skip to content

Commit

Permalink
add nested for-loop for subsystem components
Browse files Browse the repository at this point in the history
  • Loading branch information
capsulecorplab committed Oct 1, 2021
1 parent 043de1b commit cf9f189
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions templates/component-tree-diagram.puml.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ frame "{{architecture.description}} Component Tree Diagram" {
{% for component in component_hash %}
{% if component.description %}
["{{component.description}}"]
{% for subcomponent_hash in component.components %}
{% for subcomponent in subcomponent_hash %}
{% if subcomponent.description %}
["{{component.description}}"] +-- ["{{subcomponent.description}}"]
{% for subsystem_hash in component.components %}
{% for subsystem in subsystem_hash %}
{% if subsystem.description %}
["{{component.description}}"] +-- ["{{subsystem.description}}"]
{% for subsystemcomponent_hash in subsystem.components %}
{% for subsystemcomponent in subsystemcomponent_hash %}
{% if subsystemcomponent.description %}
["{{subsystem.description}}"] +-- ["{{subsystemcomponent.description}}"]
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endfor %}
{% endfor %}
Expand Down

0 comments on commit cf9f189

Please sign in to comment.