slint-ui-templates 0.1.0

Composable Slint UI building blocks — mother-child pattern, token-driven
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# `gateway/view_config.rs`


## `pub fn eval_file(path: &Path) -> Result<ViewConfig, ViewConfigError>`

*Line 6 · fn*

Load and evaluate a single `.rhai` file via the gateway.

---

## `pub fn load_all(dir: &Path) -> Result<HashMap<String, ViewConfig>, ViewConfigError>`

*Line 13 · fn*

Scan `dir/*.rhai` and return a map of `{stem → ViewConfig}`.
Missing or empty directory is not an error — returns an empty map.

---