Function askama::rerun_if_templates_changed
[−]
[src]
pub fn rerun_if_templates_changed()
Build script helper to rebuild crates if contained templates have changed
Iterates over all files in the template dir (templates
in
CARGO_MANIFEST_DIR
) and writes a cargo:rerun-if-changed=
line for each
of them to stdout.
This helper method can be used in build scripts (build.rs
) in crates
that have templates, to make sure the crate gets rebuilt when template
source code changes.