Function dilla_renderer::renderable::add_class_to_json_element
source · pub fn add_class_to_json_element(v: &Value, class: Value) -> ValueExpand description
Adds a class attribute to a JSON component.
Arguments
v- A reference to aminijinja::Valuethat represents the JSON component to which the attribute should be added.class- A minijinja::Value that represents the class name to be added to the JSON element.
Returns
minijinja::Value- The updated JSON component with the added attribute.