Moving templating logic out of the View and into the DOM.