partialize templates