|
|
@@ -180,9 +180,9 @@ app.post('/:repoSlug/examples',
|
|
|
}, exampleTmpl);
|
|
|
|
|
|
// Prepare files to write
|
|
|
- var targetDir = __dirname + '/exemples/' + repoSlug + '/' + exampleSlug;
|
|
|
+ var targetDir = examplesDir + '/' + repoSlug + '/' + exampleSlug;
|
|
|
var files = mapObjToArray({
|
|
|
- 'example.html': '<!-- ' + title + '-->\n',
|
|
|
+ 'example.html': '<!-- ' + title + ' -->\n',
|
|
|
'script.js': '// ' + title,
|
|
|
'config.json': beautify(config, null, 2, 100)
|
|
|
}, 'file', 'content');
|