Prepare for release 2.0.0-beta13

This commit is contained in:
Rodrigo Fernandes 2016-04-25 17:54:39 +01:00
parent 2463cb0270
commit dd7b1e5820
No known key found for this signature in database
GPG key ID: 08E3C5F38969078E
3 changed files with 13 additions and 8 deletions

5
dist/diff2html.js vendored
View file

@ -2809,12 +2809,17 @@ process.umask = function() { return 0; };
HoganJsUtils.prototype._loadTemplate = function(templateKey) { HoganJsUtils.prototype._loadTemplate = function(templateKey) {
var template; var template;
try {
if (fs.readFileSync) { if (fs.readFileSync) {
var templatePath = path.join(templatesPath, templateKey); var templatePath = path.join(templatesPath, templateKey);
var templateContent = fs.readFileSync(templatePath + '.mustache', 'utf8'); var templateContent = fs.readFileSync(templatePath + '.mustache', 'utf8');
template = hogan.compile(templateContent); template = hogan.compile(templateContent);
templatesCache[templateKey] = template; templatesCache[templateKey] = template;
} }
} catch (e) {
console.error('Failed to read (template: ' + templateKey + ') from fs: ' + e.message);
}
return template; return template;
}; };

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "diff2html", "name": "diff2html",
"version": "2.0.0-beta12", "version": "2.0.0-beta13",
"homepage": "http://rtfpessoa.github.io/diff2html/", "homepage": "http://rtfpessoa.github.io/diff2html/",
"description": "Fast Diff to colorized HTML", "description": "Fast Diff to colorized HTML",
"keywords": [ "keywords": [