layoutsDir is now respected when calling a layout template from the render method