Refactor erb template from pages. Only base page is aware of template engine used