Swap template and resource block