Function gtmpl::funcs::not [−][src]
pub fn not(args: &[Value]) -> Result<Value, FuncError>
Expand description
Returns the boolean negation of its single argument.
Example
use gtmpl::template; let equal = template("{{ not 0 }}", ""); assert_eq!(&equal.unwrap(), "true");