diff --git a/app/index.js b/app/index.js index 1279298..138b9e8 100644 --- a/app/index.js +++ b/app/index.js @@ -41,17 +41,16 @@ var PUGJS = 'Pug (formerly Jade)'; var ASCIIDOC = 'AsciiDoc (using Asciidoctor Bespoke)'; var optionalPlugins = [ - // bespoke-prism seems to be broken - //{ - // when: function (response) { - // return response.templatingLanguage !== ASCIIDOC; - // }, - // name: 'prism', - // version: '~1.0', - // priority: 1, - // message: 'Will your presentation include code samples?', - // default: true - //}, + { + when: function (response) { + return response.templatingLanguage !== ASCIIDOC; + }, + name: 'prism', + version: '~1.0', + priority: 1, + message: 'Will your presentation include code samples?', + default: true + }, { name: 'multimedia', version: '~1.1', diff --git a/app/templates/src/index.html b/app/templates/src/index.html index cfbe147..1fac7bf 100644 --- a/app/templates/src/index.html +++ b/app/templates/src/index.html @@ -49,23 +49,21 @@
-(function() {
- function hanoi(n, a, b, c) {
- return n ? hanoi(n - 1, a, c, b)
- .concat([[a, b]])
- .concat(hanoi(n - 1, c, b, a)) : [];
- }
- return hanoi(3, 'left', 'right', 'mid')
- .map(function(d) {
- return d[0] + ' -> ' + d[1];
- });
-})();
+function hanoi (n, a, b, c) {
+ return n ? hanoi(n - 1, a, c, b)
+ .concat([[a, b]])
+ .concat(hanoi(n - 1, c, b, a)) : []
+}
+console.log(hanoi(3, 'left', 'right', 'mid')
+ .map((d) => `${d[0]} -> ${d[1]}`))