View resolver and rendering engine for Node.js and the browser