Explorar o código

hardcode example.html as body

Benoît Hubert %!s(int64=8) %!d(string=hai) anos
pai
achega
eb84bb63a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 })
   )