panino
Version:
API documentation generator with a strict grammar and testing tools
14 lines (7 loc) • 294 B
JavaScript
'use strict';
// 3rd-party
var _ = require('underscore');
////////////////////////////////////////////////////////////////////////////////
module.exports.template = function template(str, data, options) {
return _.template(str, data, _.extend({interpolate: /\{(.+?)\}/g}, options));
};