module.exports = function (c) { // register the default themes var themes = ['Amelia', 'Cerulean', 'Cosmo', 'Cyborg', 'Journal', 'Readable', 'Simplex', 'Slate', 'Spacelab', 'Spruce', 'Superhero', 'United']; themes.forEach(function (name) { c.hatch.themes.registerTheme({ title: name, name: name.toLowerCase() }); }); // set the default - for new groups with no theme defined c.hatch.themes.registerDefaultTheme('cerulean'); process.nextTick(function () { c.models.Stylesheet.lastUpdate = new Date(); }); // this is a bit of a hack to make sure the font awesome fonts exist when // css is being written to file system in production mode // copy font awesome fonts if they do not already exist var fontRoot = __dirname + '/../../public/font'; var fontAwesome = __dirname + '/../../node_modules/FontAwesome/font'; fs.readdir(fontAwesome, function (err, files) { if (files) files.forEach(function (file) { if (!fs.existsSync(fontRoot + '/' + file)) { fsTools.copy(fontAwesome + '/' + file, fontRoot + '/' + file, function () { }); } }); }); return compound.createServer({root: __dirname}); };
module.exports = function (c) { var contentTypes = { statusupdate: { icon: 'user', view: __dirname + '/content/statusupdate.ejs' } } Object.keys(contentTypes).forEach(function (key) { var type = contentTypes[key]; c.hatch.contentType.registerContentType(key, type); c.hatch.page.register(key, require('./specials/' + key)); }); return compound.createServer({root: __dirname}); };
module.exports = function(c) { return compound.createServer({root: __dirname}); };