How to build a dynamic partial?

In my nodejs content page, I have 4 tables with same content inside. The only changes in this bootstrap table is that the repeat array is filtered based on a value. Now, I want to build these tables as a partial and send the filter value as a parameter for this partial. Remember, that there are multiple calls for this single partial in the same content page. How can I achieve this in NodeJS ?

Community Page
Last updated: