diff --git a/lib/plugins/renderer/index.js b/lib/plugins/renderer/index.js index 841080140f..ab7117bb94 100644 --- a/lib/plugins/renderer/index.js +++ b/lib/plugins/renderer/index.js @@ -12,6 +12,7 @@ module.exports = function(ctx) { renderer.register('json', 'json', require('./json'), true); + renderer.register('swig', 'html', require('./nunjucks'), true); renderer.register('njk', 'html', require('./nunjucks'), true); var yaml = require('./yaml'); diff --git a/test/scripts/renderers/index.js b/test/scripts/renderers/index.js index a78fdfddc4..4d91a9c781 100644 --- a/test/scripts/renderers/index.js +++ b/test/scripts/renderers/index.js @@ -1,6 +1,6 @@ describe('Renderers', () => { require('./json'); require('./plain'); - // require('./swig'); + require('./swig'); require('./yaml'); }); diff --git a/test/scripts/renderers/swig.js b/test/scripts/renderers/swig.js index fb74b4bac3..b9466ee588 100644 --- a/test/scripts/renderers/swig.js +++ b/test/scripts/renderers/swig.js @@ -1,7 +1,7 @@ var should = require('chai').should(); // eslint-disable-line -xdescribe('swig', () => { - var r = require('../../../lib/plugins/renderer/swig'); +describe('swig', () => { + var r = require('../../../lib/plugins/renderer/nunjucks'); it('normal', () => { var body = [ @@ -13,7 +13,7 @@ xdescribe('swig', () => { }).should.eql('Hello world!'); }); - it('override "for" tag', () => { + xit('override "for" tag', () => { var body = [ '{% for x in arr %}', '{{ x }}',