I always appreciate sharing workarounds, thanks!
I’d like to point out this may not be the first step to “fixing” this issue. If your partial isn’t working in a template, it is better in the long run to know why, ne? This sounds like it could be a scoping issue or something. Feel free to open a support ticket with this specific issue, I bet we could figure it out.