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
The assign helper clones the ctx parameter, assigns the value, and sets the result to the render context. Calling assign multiple times leaves the render context only containing the last assignment call.
Should the original context be changed before assigning to the render context? This would allow for multiple assignments.
Is this actually desired behavior and the fix should be updated documentation? e.g. if calling assign multiple times is desired, a new complex object that maintains past values should be created.
The
assign
helper clones thectx
parameter, assigns the value, and sets the result to the render context. Calling assign multiple times leaves the render context only containing the last assignment call.handlebars_misc_helpers/src/assign_helpers.rs
Lines 38 to 43 in 0e60d86
Issue opened based on feedback in SuperCuber/dotter#134.
The text was updated successfully, but these errors were encountered: