| Crates.io | swon-template |
| lib.rs | swon-template |
| version | 0.1.0 |
| created_at | 2025-05-07 02:07:03.475264+00 |
| updated_at | 2025-05-07 02:07:03.475264+00 |
| description | Templating extension for SWON files |
| homepage | https://swon.dev |
| repository | https://github.com/Hihaheho/swon |
| max_upload_size | |
| id | 1663337 |
| size | 2,130 |
Templating extension for SWON (SWan Object Notation) files.
A structured and type-safe templating tool for swon.
This crate is still under development and published for name reservation purpose.
Part of the SWON project - a minimalist, schema-friendly format with an algebraic data model that's compatible with JSON.
A template is a normal swon file which using $template extensions.
name.$template.path = .name
name.$type: string
childs.$template.for {
path = .childs
map {
name.$template.if = .childs[].active
name.$template.path = .childs[].name
name.$type: string
}
}