Replace extension for External templates