Fix bug where non-html templates were trying to render layout
Add missing render_view
Add missing required render template dir