Function gtmpl::funcs::gt [] [src]

pub fn gt(args: &[Arc<Any>]) -> Result<Arc<Any>, String>

Returns the boolean truth of arg1 > arg2

Example

use gtmpl::template;
let greater_than = template("{{ gt 1.4 . }}", 1.2);
assert_eq!(&greater_than.unwrap(), "true");