Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/badboy/motors
A super-small template library, inspired by Mote
https://github.com/badboy/motors
Last synced: 9 days 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 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-20T18:54:15.000Z (over 9 years ago)
- Last Synced: 2024-12-24T02:01:29.443Z (12 days ago)
- Language: Rust
- Size: 672 KB
- Stars: 2
- Watchers: 3
- 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