javascript - How can I render a partial in dynamicHepler? -


I am using Express in Nodes.

The following code starts partially presenting and answering it directly to the customer

How to return partials provided in the layout template instead of sending it to my dynamic halper client

  app.dynamicHelpers ({menu: function (Req, res) {// following res.partial (__dirname + '/ views / partials / menu', {localals: {nodes : Asap.config.menus [key]}});}});   

thanks

After new versions express and connect From you will call this as res.send () twice, I am working on a commitment to fix this issue. I hope to finish it shortly and we will see if TJ will merge it.

Comments