HAMLC (or similar JavaScript templating solutions)

Don’t put any logic in the template ever. Only render markup. This way when you need to figure out how a UI works you can be sure everything happens in a view, not a template.