carllerche / tower-web

A fast, boilerplate free, web framework for Rust
MIT License
981 stars 51 forks source link

Request: Allow setting handlebars strict mode #133

Closed phrohdoh closed 6 years ago

phrohdoh commented 6 years ago

https://docs.rs/handlebars/1.0.5/handlebars/struct.Handlebars.html#method.set_strict_mode

carllerche commented 6 years ago

You can do this by initializing Handlebars with a "registery" (which is just handlebars::Handlebars).

http://rust-doc.s3-website-us-east-1.amazonaws.com/tower-web/v0.3.1/tower_web/view/struct.Handlebars.html#method.new_with_registry

phrohdoh commented 6 years ago

Ah yes I looked at that code but, for some reason, thought I'd have to wait til after the tower Handlebars::new() to set it.

Sorry for the noise in that case.