【发布时间】:2015-12-31 23:14:52
【问题描述】:
我正在记录一个 NodeJS + Express 项目,我希望能够从 JavaScript 文件中引用特定的 LESS 视图和 Jade 模板。例如:
/** Displays the homepage using the {@link views/index} view. Requires {@link stylesheets/news.less} for styling the news section. */
exports.index = function(req, res){
res.render( 'index', { title: 'Welcome' } );
};
除了能够链接到非 JS 文件之外,我还希望它们与其他所有内容一起出现在侧边栏中。
我可以在每个 .less/.jade 文件中放置一个标题,并告诉 JSDoc 通过项目的 conf.json 解析它们,但是...我不希望 JSDoc 实际上 解析它们,因为那会是一团糟。
【问题讨论】: