I'm not sure why you guys are doing so difficult as data bindings in partials as parameters are already available. So there is no need to hand code this.
It works just like the rest of the Server Side Data Bindings in NodeJS:
So you just:
Define a input data for your partial by using "Define Template Data" on its root node: