rimmel
rimmel copied to clipboard
Fix: handle nullish values in template sinks with ?? operator
This PR addresses a bug where plain objects with a primitive .value property { value: 0 }) were incorrectly processed by the rml parser.
these effects were considered
- rendering as HTML content
<div>${expr}</div>. - when rendered inside an element's attribute
<input value="${expr}">.
The Fix:
- new logical check has been added to the beginning of the data sink processing logic in the main
rmlfunction. - this check now correctly identifies these "value-wrapper" objects and extracts their primitive value.
Please add hacktoberfest label