I have a Jade template that needs to call a helper, but not display its output:
// views/foo.html.jade:
p
Some content...
#{ someHelperSetterMethod('bar'); }
Unfortunately, since someHelperSetterMethod
returns nothing, I get "undefined" output in my template.开发者_如何学编程 Is there a way to do non-outputting evaluation?
p
some content
- someHelperSetterMethod('bar')
精彩评论