diff options
author | Maarten de Vries <maarten@de-vri.es> | 2019-01-10 23:20:58 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-01-11 16:30:51 +0100 |
commit | b3c1fc1a8e16ce414cd53b8e2068bc105f405ff5 (patch) | |
tree | f47b065f20a25699bf39ad2099b6e1db85c7cac7 /README.md | |
parent | 07904728f9708de152beea49ce67cafcd7225aa2 (diff) | |
download | askama-b3c1fc1a8e16ce414cd53b8e2068bc105f405ff5.tar.gz askama-b3c1fc1a8e16ce414cd53b8e2068bc105f405ff5.tar.bz2 askama-b3c1fc1a8e16ce414cd53b8e2068bc105f405ff5.zip |
Remove rerun_if_templates_changed and update README.
Diffstat (limited to '')
-rw-r--r-- | README.md | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -68,23 +68,8 @@ First, add the following to your crate's `Cargo.toml`: ```toml # in section [dependencies] -askama = "0.7" +askama = "0.8" -# in section [build-dependencies] -askama = "0.7" -``` - -Because Askama will generate Rust code from your template files, -the crate will need to be recompiled when your templates change. -This is supported by adding a build script, `build.rs`, to your crate. -It needs askama as a build dependency: - -```rust -extern crate askama; - -fn main() { - askama::rerun_if_templates_changed(); -} ``` Now create a directory called `templates` in your crate root. |