'use strict';

var swig = require('swig');

exports.name = 'swig';
exports.outputFormat = 'xml';
exports.render = function (str, options) {
  var template = swig.compile(str);
  return template(options);
};

'use strict';

var swig = require('swig');

exports.name = 'swig';
exports.outputFormat = 'html';
exports.render = function (str, options) {
  var template = swig.compile(str);
  return template(options);
};

Use `'html'` as output format
Use `'html'` as output format

Per jstransformers/jstransformer#3.
