Skip to content

Commit

Permalink
Update CHANGELOG and compiled browser files for v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuck committed May 1, 2014
1 parent 2cd7689 commit b832c7f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ Next version:
* publish in bower
* cleanup WebLoader.fetch

# v1.0.5 (May 1, 2014)

* Added support for browserify
* Added option to specify template output path when precompiling templates
* Keep version comment in browser minified files
* Speed up SafeString implementation
* Handle null and non-matching cases for word count filter
* Added support for node-webkit
* Other various minor bugfixes

# v1.0.4 (April 4, 2014)

* Use v0.8.2 of chokidar from NPM rather than Github

# v1.0.2 (March 25, 2014)

* Use chokidar for watching file changes. This should fix a lot of problems on OS X machines.
Expand Down
7 changes: 4 additions & 3 deletions browser/nunjucks-slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -764,15 +764,14 @@ modules['web-loaders'] = {
};
})();
(function() {
if(typeof window === 'undefined') {
if(typeof window === 'undefined' || window !== this) {
modules['loaders'] = modules["node-loaders"];
}
else {
modules['loaders'] = modules["web-loaders"];
}
})();
(function() {

var lib = modules["lib"];
var r = modules["runtime"];

Expand Down Expand Up @@ -1185,7 +1184,8 @@ var filters = {
},

wordcount: function(str) {
return str.match(/\w+/g).length;
var words = (str) ? str.match(/\w+/g) : null;
return (words) ? words.length : null;
},

'float': function(val, def) {
Expand Down Expand Up @@ -1809,6 +1809,7 @@ if(typeof define === 'function' && define.amd) {
}
else {
window.nunjucks = nunjucks;
if(typeof module !== 'undefined') module.exports = nunjucks;
}

})();
2 changes: 1 addition & 1 deletion browser/nunjucks-slim.min.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions browser/nunjucks.js
Original file line number Diff line number Diff line change
Expand Up @@ -3849,7 +3849,6 @@ modules['compiler'] = {
};
})();
(function() {

var lib = modules["lib"];
var r = modules["runtime"];

Expand Down Expand Up @@ -4262,7 +4261,8 @@ var filters = {
},

wordcount: function(str) {
return str.match(/\w+/g).length;
var words = (str) ? str.match(/\w+/g) : null;
return (words) ? words.length : null;
},

'float': function(val, def) {
Expand Down Expand Up @@ -4445,7 +4445,7 @@ modules['web-loaders'] = {
};
})();
(function() {
if(typeof window === 'undefined') {
if(typeof window === 'undefined' || window !== this) {
modules['loaders'] = modules["node-loaders"];
}
else {
Expand Down Expand Up @@ -4988,6 +4988,7 @@ if(typeof define === 'function' && define.amd) {
}
else {
window.nunjucks = nunjucks;
if(typeof module !== 'undefined') module.exports = nunjucks;
}

})();
2 changes: 1 addition & 1 deletion browser/nunjucks.min.js

Large diffs are not rendered by default.

0 comments on commit b832c7f

Please sign in to comment.