i basically has an expressjs application with the following dirs:
app/views
and
app/plugin/views
and would like to be able to serve both directories.
how will it work?
I tried to install
app.set('views', second_dir)
but then my application will not find my first directory of views.
then I tried symlinking the folder,
fs.exists(viewDir, function() { fs.symlink(viewDir, rootViewDir, 'dir', function(err) { console.log('adding symlink with err: '+err+ ' in viewdir ='+viewDir+' rootDir ='+rootViewDir); }); });
this works, creates a symbolic link (constantly), but node cannot read symbolic representations as it seems.
is there a solution to my dilemma?
Thanks a lot, have fun Jascha
express
jascha
source share