View object now has renderInLayout function to render a template within a layout