# examples
Examples can be run from anywhere in the repo using the following.
```sh
cargo run --example <name>
```
- [serde](serde.rs): Demonstrates rendering a simple template using a custom
global context that implements `serde::Serialize`.
- [custom_syntax](custom_syntax.rs): Demonstrates how to configure the template engine with
custom syntax delimiters.
- [escape_html](escape_html.rs): Demonstrates how to configure a _value
formatter_ to escape strings for HTML and add an "unescape" _value formatter_
for outputting values unescaped.
- [functions](functions.rs): Demonstrates how to configure custom functions for
transforming data before rendering.
- [static_templates](static_templates.rs): Demonstrates how to statically
include templates in the binary using the `include_str!` macro.
- [runtime_templates](runtime_templates.rs): Demonstrates how to implement a
file loader. Files are are loaded at _runtime_ from the `templates/` directory
and added to the engine.
- [custom_template_store](custom_template_store.rs): Demonstrates how to
implement a custom template store. This can allow for things like
- relative template paths
- controlling template access
- lazy loading (if you use interior mutability)