pub fn has_class(v: Value, class: Value) -> Result<Value, Error>
Expand description

Check if has class from Seq, which are always treated as Attribute.

{{ {'data': 'test'}|has_class('bar') }}
  -> false
{{ {'data': 'test', 'class': 'foo'}|has_class('foo') }}
  -> true