I need to use "fs" module inside a Jade file. No other JS file.
When I try:
- var js = require('fs')
- var downloadfiles = readdirSync("download")
for f in downloadfiles
url
loc= D + "/download" + f
lastmod= buildDate
changefreq daily
priority 1.0
I got the error "undefined is not a function"