Prepare for release 2.0.0-beta13
This commit is contained in:
parent
2463cb0270
commit
dd7b1e5820
3 changed files with 13 additions and 8 deletions
15
dist/diff2html.js
vendored
15
dist/diff2html.js
vendored
|
|
@ -2809,11 +2809,16 @@ process.umask = function() { return 0; };
|
|||
|
||||
HoganJsUtils.prototype._loadTemplate = function(templateKey) {
|
||||
var template;
|
||||
if (fs.readFileSync) {
|
||||
var templatePath = path.join(templatesPath, templateKey);
|
||||
var templateContent = fs.readFileSync(templatePath + '.mustache', 'utf8');
|
||||
template = hogan.compile(templateContent);
|
||||
templatesCache[templateKey] = template;
|
||||
|
||||
try {
|
||||
if (fs.readFileSync) {
|
||||
var templatePath = path.join(templatesPath, templateKey);
|
||||
var templateContent = fs.readFileSync(templatePath + '.mustache', 'utf8');
|
||||
template = hogan.compile(templateContent);
|
||||
templatesCache[templateKey] = template;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Failed to read (template: ' + templateKey + ') from fs: ' + e.message);
|
||||
}
|
||||
|
||||
return template;
|
||||
|
|
|
|||
4
dist/diff2html.min.js
vendored
4
dist/diff2html.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "diff2html",
|
||||
"version": "2.0.0-beta12",
|
||||
"version": "2.0.0-beta13",
|
||||
"homepage": "http://rtfpessoa.github.io/diff2html/",
|
||||
"description": "Fast Diff to colorized HTML",
|
||||
"keywords": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue