-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified code generation method to cater multiple namespaces
- Loading branch information
1 parent
f638f09
commit 2769661
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{% for child in children['Components'] + children['Datatypes'] + children['Collections'] %} | ||
include("{{ child }}.jl") | ||
{% for value in children %} | ||
{% for childvalue in value['child']['Components'] + value['child']['Datatypes'] + value['child']['Collections'] %} | ||
include("{{ childvalue }}.jl") | ||
{% endfor %} | ||
{% endfor %} | ||
|
||
module {{ package_name|capitalize }} | ||
|
||
{% for child in children['Components'] + children['Datatypes'] %} | ||
using ..{{child}}Module: {{child}} | ||
export {{child}} | ||
{% for value in children %} | ||
module {{ value['parent']|capitalize }} | ||
{% for childvalue in value['child']['Components'] + value['child']['Datatypes'] %} | ||
using ..{{childvalue}}Module: {{childvalue}} | ||
export {{childvalue}} | ||
{% endfor %} | ||
end | ||
|
||
end | ||
{% endfor %} |