|
|
@@ -46,6 +46,7 @@ module.exports = function(exStore, exDir, testMode) {
|
|
|
// Initialize view data
|
|
|
let data = {
|
|
|
menuRepo: exStore.getRepoMenu(),
|
|
|
+ repoJSON: 'null',
|
|
|
testMode,
|
|
|
testRun: testMode && req.query.testing,
|
|
|
appPath: req.path,
|
|
|
@@ -55,6 +56,7 @@ module.exports = function(exStore, exDir, testMode) {
|
|
|
// Fetch example repository if needed
|
|
|
if(withRepo) {
|
|
|
data.repo = exStore.getRepo(repoSlug);
|
|
|
+ data.repoJSON = JSON.stringify(data.repo);
|
|
|
if(! data.repo) {
|
|
|
// return res.status(404).send('Repo ' + req.params.repoSlug + ' not found');
|
|
|
data.errorMessage = translator.getOne(locale, "repoNotFound", [repoSlug]); //'Repo ' + params.repoSlug + ' not found';
|