jsdoc/templates/default/publish.js
2010-12-26 13:52:53 +00:00

28 lines
639 B
JavaScript

(function() {
include('templates/lib/janl/mustache.js');
publish = function(docs, opts) {
var out = '',
template = readFile(BASEDIR + 'templates/default/tmpl/index.html');
var summarize = function () {
return function(text, render) {
text = render(text);
/^(.*?(\.|\n|\r|$))/.test(text);
return RegExp.$1;
}
};
out = Mustache.to_html(
template,
{
docs: docs,
summarize: summarize
}
);
print(out);
}
})();