Ensure data passed to templates is immutable unless otherwise needed #24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Data structures passed to the template that end up being used later should not have any set methods and should be opaque or cloned if they are a dict or list etc.
Additionally, all template functions that return structures specifically for modification by the template should prefer dicts, lists, etc. where possible, and structs with public setters for situations where that wouldnt be ideal.
Ensure data passed to templates is immutable unless neededto Ensure data passed to templates is immutable unless otherwise needed