added template method to register partials