diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-08-07 15:37:51 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-09-07 17:32:16 +0100 |
commit | b443c533f9e5a0bdbf8b380a8d7d59e46c28858b (patch) | |
tree | fe01f78e107ca092a3d13875ddff704c6ec2afce /src/bindings.rs | |
parent | 1afd692bacf6c95d5897d4af74f6f2d4f8b91c1f (diff) | |
download | subplot-b443c533f9e5a0bdbf8b380a8d7d59e46c28858b.tar.gz |
chore: Unwind global template name
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/bindings.rs')
-rw-r--r-- | src/bindings.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bindings.rs b/src/bindings.rs index 4447c66..c805965 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -506,11 +506,11 @@ impl Bindings { /// Add bindings from a file. #[instrument(level = "trace", skip(self))] - pub fn add_from_file<P>(&mut self, filename: P) -> Result<()> + pub fn add_from_file<P>(&mut self, filename: P, template: Option<&str>) -> Result<()> where P: AsRef<Path> + Debug, { - let yaml = resource::read_as_string(filename.as_ref()) + let yaml = resource::read_as_string(filename.as_ref(), template) .map_err(|e| SubplotError::BindingsFileNotFound(filename.as_ref().into(), e))?; event!(Level::TRACE, "Loaded file content"); self.add_from_yaml(&yaml).map_err(|e| { |