9 releases

new 0.1.8 Jan 8, 2025
0.1.7 Jan 7, 2025

#414 in Template engine

Download history 515/week @ 2024-12-28 323/week @ 2025-01-04

838 downloads per month
Used in 2 crates

MIT license

16KB
313 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

~0.7–1.6MB
~34K SLoC