Browse Source

hardcode example.html as body

Benoît Hubert 8 years ago
parent
commit
eb84bb63a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sandboxApp.js

+ 1 - 1
sandboxApp.js

@@ -80,7 +80,7 @@ app.get('/examples/:slug', function(req, res) {
   const { slug } = req.params;
   const config = readConfigJson(slug);
   const { title, html, js, css, libsCss, libsJs } = config;
-  readFileAsync(__dirname + '/exemples/' + slug + '/' + html[0])
+  readFileAsync(__dirname + '/exemples/' + slug + '/example.html')
   .then(body =>
     Mustache.render(sandboxTpml, { body, slug, title, js, css, libsCss, libsJs })
   )