Function gtmpl::funcs::lt [] [src]

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

Returns the boolean truth of arg1 < arg2

Example

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