Skip to content

Commit e0dc6f0

Browse files
committed
Bug fixes on Handlebar templates
1 parent 72f6c3f commit e0dc6f0

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{#unless (noStereotypeApplications this "TNodeTemplate")}}node_templates:{{/unless}}
2-
{{#ownedElement}}{{#extension}}{{#eq name "TNodeTemplate"}}
3-
{{> (lookup this.name) ../this}}
4-
{{/eq}}{{/extension}}{{/ownedElement}}
1+
{{name}}:
2+
{{#unless (noStereotypeApplications this "TNodeTemplate")}}node_templates:{{/unless}}
3+
{{#ownedElement}}{{#extension}}{{#eq name "TNodeTemplate"}}
4+
{{> (lookup this.name) ../this}}
5+
{{/eq}}{{/extension}}{{/ownedElement}}

ToscaDesigner/src/main/resources/fr/softeam/templates/TNodeTemplate.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
{{../name}}:
2-
type: {{getProperty ../this "nodeType"}}
3-
{{#unless (noStereotypeApplications ../this "Metadata")}}metadata:{{/unless}}
1+
{{name}}:
2+
type: {{getProperty this "nodeType"}}
3+
{{#unless (noStereotypeApplications this "Metadata")}}metadata:{{/unless}}
44
{{#each ../ownedAttribute}}{{#extension}}{{#eq name "Metadata"}}
55
{{../name}}: "{{../value}}"
66
{{/eq}}{{/extension}}{{/each}}
7-
{{#unless (noStereotypeApplications ../this "PropertyDefinitionType")}}properties:{{/unless}}
7+
{{#unless (noStereotypeApplications this "PropertyDefinitionType")}}properties:{{/unless}}
88
{{#each ../ownedAttribute}}{{#extension}}{{#eq name "PropertyDefinitionType"}}
99
{{../name}}: "{{../value}}"
1010
{{/eq}}{{/extension}}{{/each}}
11-
{{#unless (noStereotypeApplications ../this "RequirementsType")}}requirements:{{/unless}}
11+
{{#unless (noStereotypeApplications this "RequirementsType")}}requirements:{{/unless}}
1212
{{#each ../ownedElement}}{{#extension}}{{#eq name "RequirementsType"}}{{#each ../ownedAttribute}}{{#extension}}{{#eq name "TRequirement"}}
1313
- {{../name}}:
1414
node: {{getProperty ../this "node"}}
1515
relationship: {{relationship}}
1616
capability: {{getProperty ../this "capability"}}
1717
{{/eq}}{{/extension}}{{/each}}{{/eq}}{{/extension}}{{/each}}
18-
{{#unless (noStereotypeApplications ../this "TDeploymentArtifacts")}}artifacts:{{/unless}}
18+
{{#unless (noStereotypeApplications this "TDeploymentArtifacts")}}artifacts:{{/unless}}
1919
{{#each ../ownedElement}}{{#extension}}{{#eq name "TDeploymentArtifacts"}}{{#each ../ownedElement}}{{#extension}}{{#eq name "TDeploymentArtifact"}}
2020
{{../name}}:
2121
type: {{getProperty ../this "artifactType"}}
14.6 KB
Binary file not shown.
15.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)