Skip to content

Commit

Permalink
make {{ ioc_yaml_file_name }} get rendered in bob files
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Nov 16, 2023
1 parent 7c8593d commit 2727ae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ibek/gen_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def ioc_deserialize(ioc_instance_yaml: Path, definition_yaml: List[Path]) -> IOC
# extract the ioc name into UTILS for use in jinja renders
name = UTILS.render({}, ioc_instance_dict["ioc_name"])
UTILS.set_ioc_name(name)
ioc_instance_dict["ioc_name"] = name

# Create an IOC instance from the instance dict and the model
ioc_instance = ioc_model(**ioc_instance_dict)
Expand Down
2 changes: 1 addition & 1 deletion tests/samples/outputs/index.bob
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<widget type="label" version="2.0.0">
<name>Title</name>
<class>TITLE</class>
<text>{{ ioc_yaml_file_name }} - Index</text>
<text>all.ibek.ioc - Index</text>
<x use_class="true">0</x>
<y use_class="true">0</y>
<width>273</width>
Expand Down

0 comments on commit 2727ae7

Please sign in to comment.