diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-06-21 05:35:40 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-06-21 05:35:40 +0300 |
commit | 4694b6e7dcf29a01b47eee4a782e5b585cd80c39 (patch) | |
tree | 6c0e12feeacc6795726ee585625311c95b07d776 /src/codegen.rs | |
parent | d8e88bcdf5fddab3757d64cb7ca4c355480a8ca5 (diff) | |
download | subplot-4694b6e7dcf29a01b47eee4a782e5b585cd80c39.tar.gz |
refactor: rename Document::files to ::embedded_files
This makes it more clear what kind of files we're talking about. The
old name could've meant, say, the markdown files.
Sponsored-by: author
Diffstat (limited to 'src/codegen.rs')
-rw-r--r-- | src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.rs b/src/codegen.rs index 81a5f35..41b5556 100644 --- a/src/codegen.rs +++ b/src/codegen.rs @@ -32,7 +32,7 @@ fn context(doc: &mut Document, template: &str) -> Result<Context, SubplotError> let mut context = Context::new(); let scenarios = doc.matched_scenarios(template)?; context.insert("scenarios", &scenarios); - context.insert("files", doc.files()); + context.insert("files", doc.embedded_files()); let mut funcs = vec![]; if let Some(docimpl) = doc.meta().document_impl(template) { |