| Crates.io | template-compiler |
| lib.rs | template-compiler |
| version | 0.1.1 |
| created_at | 2024-05-10 04:45:12.907629+00 |
| updated_at | 2024-05-10 04:45:12.907629+00 |
| description | A compiler from a simple template language to Wasm components |
| homepage | |
| repository | https://github.com/esoterra/template-compiler |
| max_upload_size | |
| id | 1235689 |
| size | 92,222 |
This project compiles template files based on Nunjucks to WebAssembly (Wasm) Components.
It is very much a work in progress and the current compiler simply generates a component that prints out the entire template input.
Features will be progressively added, tentatively in this order:
Invoke the compiler like this to generate a component for a template.
cargo run -- -i <input-path> -o <destination-path>
The best examples are currently the runtime tests, with the most interesting one being the "website" test.