Function gtmpl::funcs::eq[][src]

pub fn eq(args: &[Value]) -> Result<Value, FuncError>
Expand description

Returns the boolean truth of arg1 == arg2 [== arg3 …]

Example

use gtmpl::template;
let equal = template("{{ eq 1 1 . }}", 1);
assert_eq!(&equal.unwrap(), "true");