Clarify that 'Template' is a proxy type.

This commit is contained in:
rotoclone 2021-04-30 00:09:52 -05:00 committed by Sergio Benitez
parent da996cddc3
commit bacbf073ce
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ const DEFAULT_TEMPLATE_DIR: &str = "templates";
/// Responder that renders a dynamic template. /// Responder that renders a dynamic template.
/// ///
/// `Template` serves as a _proxy_ type for rendering a template and _does not_
/// contain the rendered template itself. The template is lazily rendered, at
/// response time. To render a template greedily, use [`Template::show()`].
///
/// # Usage /// # Usage
/// ///
/// To use, add the `handlebars_templates` feature, the `tera_templates` /// To use, add the `handlebars_templates` feature, the `tera_templates`