plone / mockup

A collection of client side patterns for faster and easier web development
http://plone.github.io/mockup/
BSD 3-Clause "New" or "Revised" License
47 stars 93 forks source link

WIP: Refactor patterns so all logic goes outside the templates #1315

Open frapell opened 1 year ago

frapell commented 1 year ago

This PR is a work in progress for gh-1306

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:

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