The base idea is that .template() from underscore needs to be replaced, and so all logic from the templates need to be stripped out.
Patterns that need to be refactored:
[x] relateditems
[ ] contentloader
[ ] tinymce's link plugin
[ ] livesearch
[ ] upload
[ ] recurrence
[ ] structure
[ ] modal
When templates do not have logic in them, it should be enough to simply replace _.template() with utils.template() and that's it, but if the template does have logic, or any JS evaluation, then it needs some refactoring
This PR is a work in progress for gh-1306
The base idea is that
.template()
fromunderscore
needs to be replaced, and so all logic from the templates need to be stripped out.Patterns that need to be refactored:
When templates do not have logic in them, it should be enough to simply replace
_.template()
withutils.template()
and that's it, but if the template does have logic, or any JS evaluation, then it needs some refactoring