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

Remove classes to a Seq, which are always treated as Attribute.

{{ {'data': 'test', 'class': ['foo', 'bar']}|remove_class('foo') }}
  -> class="bar" data="test"
{{ {'data': 'test', 'class': 'bar'}|remove_class('bar') }}
  -> data="test"
{{ {'data': 'test', 'class': ['some', 'other', 'foo', 'bar']}|remove_class(['some', 'other']) }}
  -> class="bar foo" data="test"