Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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