Function dilla_renderer::engine::remove_attribute
source · pub fn remove_attribute(v: Value, name: Value) -> Result<Value, Error>
Expand description
Remove element by name of an Attribute
.
{{ {'id': 'test', 'data': 'test, 'class': ['foo', 'bar']}|remove_attribute('id') }}
-> class="bar foo" data="test"
{{ {'data': 'test', 'class': 'bar'}|remove_attribute('class') }}
-> data="test"