Implemented template reading and rendering in view.js