You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the value is an object or array, [object Object] will be put into the template. This might not be very helpful for debugging (and sometimes this is exactly what you would want, which forces you to write a transformation).
Expected behavior
Add an option like stringifyObjectValues or equivalent in the stringify options and let it put a nicer presentation of objects in the output.
Out of scope
One may want to give special treatment to arrays or set the indentation as well but I'm not aware of any strong use case so let's not add that now.
The text was updated successfully, but these errors were encountered:
I haven't seen something like that. This is how Mucromustache used to work
before but it changed to improve performance.
As a user, it's easy to add that behavior by passing a function to renderFn
that stringifies the target object.
Current behavior
If the value is an object or array,
[object Object]
will be put into the template. This might not be very helpful for debugging (and sometimes this is exactly what you would want, which forces you to write a transformation).Expected behavior
Add an option like
stringifyObjectValues
or equivalent in the stringify options and let it put a nicer presentation of objects in the output.Out of scope
One may want to give special treatment to arrays or set the indentation as well but I'm not aware of any strong use case so let's not add that now.
The text was updated successfully, but these errors were encountered: