legacyweb-pages 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/page.js CHANGED
@@ -29,7 +29,7 @@ function Page(template, theme, title, home, addHomeLink=true, staticPaths=[]) {
29
29
 
30
30
  // Define static paths
31
31
  staticPaths.forEach(staticPath => {
32
- this.app.use('/images', express.static(staticPath));
32
+ this.app.use(staticPath.webPath, express.static(staticPath.filePath));
33
33
  });
34
34
  }
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "legacyweb-pages",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A toolkit for generating legacyweb pages",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@ const myLeftPage = new Page('leftpane', 'forest', 'Sample Page', {
11
11
  gen: function() {
12
12
  return Promise.resolve(contentHome);
13
13
  }
14
- }, true, [path.join(__dirname, 'images')]);
14
+ }, true, [{webPath: '/images', filePath: path.join(__dirname, 'images')}]);
15
15
 
16
16
  myLeftPage.setBgImage('body', '/images/leaves.jpg');
17
17