문제

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')
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top