blob: 7bacf6816166237718d9948e081862f0ceb993ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from templet import stringfunction
@stringfunction
def template (component_name) :
"""
<instance xmi:id="${component_name}ComponentInstance">
<name>${component_name}Component</name>
<node>Node</node>
<!-- hostname -->
<source/>
<implementation xmi:idref="${component_name}ComponentImplementation" />
</instance>
"""
|