https://github.com/badboy/motors
A super-small template library, inspired by Mote
https://github.com/badboy/motors
Last synced: 4 months ago
JSON representation
A super-small template library, inspired by Mote
- Host: GitHub
- URL: https://github.com/badboy/motors
- Owner: badboy
- License: mit
- Created: 2015-04-12T20:32:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-20T18:54:15.000Z (almost 10 years ago)
- Last Synced: 2025-03-14T19:52:08.457Z (4 months ago)
- Language: Rust
- Size: 672 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# motors - A super small template library, inspired by Mote
Inspired and based on [mote](https://github.com/soveran/mote).
## Documentation
[Online documentation][doc].
## Basic operation
```rust
use motors;
let tmpl = motors::Template::parse("Hello {{user}}!").unwrap();
let mut ctx = HashMap::new();ctx.insert("user", "Ada");
assert_eq!("Hello Ada!", tmpl.render(&ctx));
```## Contribute
If you find bugs or want to help otherwise, please [open an issue][issues].
## License
MIT. See [LICENSE](LICENSE).
[doc]: http://badboy.github.io/motors/motors/
[issues]: https://github.com/badboy/motors/issues