How to serve and browse static folder with html files without using layout

552 views Asked by At

I'm building a website based on a bought theme. I want to serve the theme folder so my customer can have a look at the unmodified version of theme and choose components.

With express, i can do this :

var express = require('express');
var app = express();
app.use('/theme', express.static('my_theme', {'icons': true}));

I didn't find how to do this with total.js.

1

There are 1 answers

0
Mat'arangéÇa On

Put theme folder inside public/ folder works but, bought theme are usually shipped with a documentation folder and more so it could be useful to browse them.
total.js provide a module to browse folder : directorylisting. It work well with public folder but take a note it doesn't with F.map() who provide a way to map a folder.