jade the “filename” option is required to use “extends” with “relative” paths
问题 I have following folder structure (simplified): project - app.js - views - index.jade - layout.jade - public ... I want to generate an index.html file from index.jade and use the following command in my Terminal (Mac OS X): jade < index.jade > index.html However I receive an error saying: /usr/local/lib/node_modules/jade/lib/runtime.js:231 throw err; ^ Error: Jade:1 > 1| extends ./layout 2| 3| block mainContent 4| center the "filename" option is required to use "extends" with "relative" paths