Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Jade 模板需要调用帮助程序,但不显示其输出:
// views/foo.html.jade: p Some content... #{ someHelperSetterMethod('bar'); }
不幸的是,由于someHelperSetterMethod什么都不返回,我在模板中得到“未定义”的输出。有没有办法进行非输出评估?
someHelperSetterMethod
p some content - someHelperSetterMethod('bar')