How can I add a JavaScript function to a show function?
'XYZ: '+ (111*2)

I would like to reference a custom function like this:
'XYZ: '+ zooph(111)

This example does NOT work:

"myshowfunction": "function(doc, req){ return{'headers':
{'Content-Type' : 'text/plain'}, 'body': function zooph(x) {return
x*2;} + 'XYZ: '+ zooph(111)}}"

Reply via email to