[][src]Function askama::rerun_if_templates_changed

pub fn rerun_if_templates_changed()

Build script helper to rebuild crates if contained templates have changed

Iterates over all files in the template directories 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.