Closed bryanburgers closed 5 years ago
Should tower_web::view::Registry be exported publicly?
tower_web::view::Registry
Right now, to switch from Handlebars::new to Handlebars::new_with_registry, the user has to
Handlebars::new
Handlebars::new_with_registry
handlebars = "1.0.3"
extern handlebars
handlebars::Handlebars
Registry
That is fine for now IMO.
The goal of the handlebars integration is to provide basic functionality to prove it out. At some point, it will be extracted into a dedicated crate and can be iterated more there.
Should
tower_web::view::Registry
be exported publicly?Right now, to switch from
Handlebars::new
toHandlebars::new_with_registry
, the user has tohandlebars = "1.0.3"
to cargo.toml (and potentially keep this in sync with tower-web in the future)extern handlebars
to the main.rs/lib.rs filehandlebars::Handlebars
instead of the re-namedRegistry