pub fn one_off<T: Serialize>(input: &str, data: &T, autoescape: bool) -> Result<String> {
        let mut tera = Tera::default();
        tera.add_raw_template("one_off", input)?;
        if autoescape {
            tera.autoescape_on(vec!["one_off"]);
        }

        tera.render("one_off", data)
    }
/// Renders a one off template (for example a template coming from a user input) given a `Context`
/// or an object that implements `Serialize`.
///
/// This creates a separate instance of Tera with no possibilities of adding custom filters
/// or testers, parses the template and render it immediately.
/// Any errors will mention the `one_off` template: this is the name given to the template by
/// Tera
///
/// ```rust,ignore
/// let mut context = Context::new();
/// context.insert("greeting", &"hello");
/// Tera::one_off("{{ greeting }} world", &context, true);
/// // Or with a struct that impl Serialize
/// Tera::one_off("{{ greeting }} world", &user, true);
/// ```
Renders a one off template (for example a template coming from a user input) given a `Context`
or an object that implements `Serialize`.

This creates a separate instance of Tera with no possibilities of adding custom filters
or testers, parses the template and render it immediately.
Any errors will mention the `one_off` template: this is the name given to the template by
Tera


Renders a one off template ( for example a template coming from a user input ) given a ` Context ` or an object that implements ` Serialize ` . This creates a separate instance of Tera with no possibilities of adding custom filters or testers parses the template and render it immediately . Any errors will mention the ` one_off ` template : this is the name given to the template by Tera
pub fn one_off<T: Serialize>(input: &str, data: &T, autoescape: bool) -> Result<String> {
        let mut tera = Tera::default();
        tera.add_raw_template("one_off", input)?;
        if autoescape {
            tera.autoescape_on(vec!["one_off"]);
        }
        tera.render("one_off", data)
    }
pub fn one_off < T : Serialize > ( input : & str , data : & T , autoescape : bool ) -> Result < String > { let mut tera = Tera :: default ( ) ; tera . add_raw_template ( " " , input ) ? ; if autoescape { tera . autoescape_on ( vec ! [ " " ] ) ; } tera . render ( " " , data ) }
Renders a one off template (for example a template coming from a user input) given a `Context`
or an object that implements `Serialize`.
Renders a one off template ( for example a template coming from a user input ) given a ` Context ` or an object that implements ` Serialize ` .
input
&str
data
&T
autoescape
bool
input
&str
data
&T
autoescape
bool