https://github.com/brainiumllc/bicycle
Handlebars with wheels. 🚴🏽
https://github.com/brainiumllc/bicycle
Last synced: about 2 months ago
JSON representation
Handlebars with wheels. 🚴🏽
- Host: GitHub
- URL: https://github.com/brainiumllc/bicycle
- Owner: BrainiumLLC
- License: apache-2.0
- Created: 2020-08-05T23:17:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T22:26:38.000Z (almost 6 years ago)
- Last Synced: 2025-12-26T19:42:39.455Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# `bicycle`
[Handlebars](https://handlebarsjs.com/) with wheels. 🚴🏽♀️
...what are the wheels? Well, the `traverse` function!
Built on top of the [`handlebars`](https://crates.io/crates/handlebars) crate, which is probably what you'd prefer using for a web backend.
```rust
use bicycle::Bicycle;
let bike = Bicycle::default();
let rendered = bike.render("Hello {{name}}!", |map| {
map.insert("name", "Shinji");
}).unwrap();
assert_eq!(rendered, "Hello Shinji!");
```