CLC-2828 exposed templates through new API and lazily adds partials to $templateCache on route change