Here is a snippet of my CoffeeScript code:
dirs = ["/assets", "/public", "/locales", "/data/topo"]
app.configure ->
app.use assets(build : true)
jsPaths assets, console.log
@use(express.favicon(process.cwd() + "/assets/images/favicon.ico", {maxAge:maxAges}))
.use(express.compress())
.use(express.static(process.cwd() + "/assets", {maxAge:maxAges}))
.use(express.static(process.cwd() + "/public", {maxAge:maxAges}))
.use(express.static(process.cwd() + "/locales", {maxAge:maxAges}))
.use(express.static(process.cwd() + "/data/topo", {maxAge:maxAges}))
.use(express.logger('dev'))
.use(express.errorHandler(
dumpException: true
showStack: true
))
# Add template engine
I want to set the maxAge for all directories listed in
dirs = ["/assets", "/public", "/locales", "/data/topo"]
. Can anyone provide guidance on the correct way to achieve this?
Any advice would be greatly appreciated.