5 releases
new 0.1.8 | Jan 8, 2025 |
---|---|
0.1.7 | Jan 7, 2025 |
#3 in #crab
911 downloads per month
23KB
311 lines
🦀 Crab Markup Language
CRML is a simple markup language which compiles all given files into a Rust module which fits right into your crate source.
The generated crml/mod.rs
file exports functions which build the contents of your given templates as HTML.
Configuration
Your project must contain a crml.json
file in order to tell the CLI how to build your templates. The repository contains an example crml.json
file which links to examples/simple
to build templates.
You can run this example for yourself with the following commands:
cargo run --bin crml # build mod.rs
cargo run --example simple # run example
Usage
You can use the crml
CLI to read your relative crml.json
file and build your templates.
crml
Attribution
CRML is licensed under the MIT license. You can view the license here.
Dependencies
~4.5–10MB
~105K SLoC