Function dilla_renderer::renderable::add_class_to_json_component
source · pub fn add_class_to_json_component(v: &Value, class: Value) -> ValueExpand description
Add class to a payload by converting minijinja to serde_json::Map for manipulation.
Arguments
v- A reference to aminijinja::Valueobject.class- Aminijinja::Valuestring representing the class to be added.
Returns
A minijinja::Value object representing the updated data map.