From d9e8a79ff6dabb21a966079669e5be3a49742804 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 22 Sep 2016 04:24:04 -0700 Subject: [PATCH] Add template features to contrib doc. --- contrib/src/lib.rs | 4 +++- contrib/src/templates/mod.rs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/contrib/src/lib.rs b/contrib/src/lib.rs index 8c84a646..a7c66d89 100644 --- a/contrib/src/lib.rs +++ b/contrib/src/lib.rs @@ -12,7 +12,9 @@ //! common modules exposed by default. The present feature list is below, with //! an asterisk next to the features that are enabled by default: //! -//! * json* +//! * [json*](struct.JSON.html) +//! * [handlebars_templates](struct.Template.html) +//! * [tera_templates](struct.Template.html) //! //! The recommend way to include features from this crate via Cargo in your //! project is by adding a `[dependencies.rocket_contrib]` section to your diff --git a/contrib/src/templates/mod.rs b/contrib/src/templates/mod.rs index 0074be7c..c63f9e73 100644 --- a/contrib/src/templates/mod.rs +++ b/contrib/src/templates/mod.rs @@ -3,10 +3,10 @@ extern crate serde_json; extern crate glob; #[cfg(feature = "tera_templates")] -pub mod tera_templates; +mod tera_templates; #[cfg(feature = "handlebars_templates")] -pub mod handlebars_templates; +mod handlebars_templates; #[macro_use] mod macros;