added support for loading dictionary structure

This commit is contained in:
2024-06-14 10:17:19 +02:00
parent 49db07b9ee
commit 4b33ab4a56
5 changed files with 107 additions and 2 deletions

View File

@ -44,6 +44,8 @@
#let load(path-or-schema) = {
let schema = if type(path-or-schema) == str {
parse-file(path-or-schema)
} else if type(path-or-schema) == dictionary {
path-or-schema
} else {
parse-raw(path-or-schema)
}