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

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

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

Example

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