using #render with locals doesn't delete template anymore