如何通过CompoundJS中的“使用”方法传递参数?

我正在使用CompoundJS(Express / NodeJS的MVC)。 为了在控制器之间共享代码,Doc说在controller1.js我可以使用publish方法来共享一个方法:

 /***controller1.js***/ function sharedFunction () {...} publish('sharedFunction', sharedFunction); //Sharing... 

controller2.js我可以通过load它并尝试use方法来访问它:

 /***controller2.js***/ load('controller1'); // _controller siffix must be omitted use('sharedFunction') 

问题

这很好,但是,我有一个sharedFunction有params:

 /***controller1.js***/ function sharedFunction (param1, param2) {...} publish('sharedFunction', sharedFunction); //Sharing... 

我一直在阅读文档,但是我找不到如何,或者语法,在controller1.js上的use方法上添加这个参数。 我在哪里发送这些参数?

 /***controller2.js***/ load('controller1'); // _controller siffix must be omitted use('sharedFunction(params here?)', {params here?}) //where do I send the params? 

非常感谢你!

以下是我所做的:

 var sharedFunction = use('sharedFunction'); sharedFunction(param1, param2);