sailfish/docs/en/docs/installation.md

14 lines
454 B
Markdown
Raw Normal View History

2020-06-09 08:19:59 -04:00
# Installation
In order to use sailfish templates, you have add two dependencies in your `Cargo.toml`.
```toml
[dependencies]
sailfish = "0.0.3"
sailfish-macros = "0.0.3"
```
`sailfish` crate contains runtime for rendering contents, and `sailfish-macros` serves you derive macros to compile and import the template files.
These crates are separated so that Rust compiler can compile them independently. This separation makes your compilation faster!