3
옥 파일 안에 "fs"모듈을 사용해야합니다. 다른 JS 파일이 없습니다. 옥 (jade) 파일 안에 "require"모듈이 있습니다
내가하려고하면 :- var js = require('fs')
- var downloadfiles = readdirSync("download")
for f in downloadfiles
url
loc= D + "/download" + f
lastmod= buildDate
changefreq daily
priority 1.0
나는 오류가 발생했습니다 인수로 파일 옥에 기능을 보내야
[A Node.js를 웹 서버에 옥 외부 모듈을 필요로]이 가능 중복 (http://stackoverflow.com/questions/18407998/require-an-external-module-in-jade-in- a-node-js-webserver) –