aglio-theme-setlist
Version:
Setlist theme for the Aglio API Blueprint renderer
22 lines (16 loc) • 425 B
JavaScript
var theme;
var fs = require('fs');
try {
theme = require('../lib/main');
} catch (err) {
require('coffee-script/register');
theme = require('../src/main');
}
if (!fs.existsSync('./cache')) {
fs.mkdirSync('./cache');
}
fs.chmodSync('./cache', 0777);
// Call with known options to generate the cache entries. This isn't that
// efficient but it works for now.
theme.render({}, function () {});