Skip to content

Commit

Permalink
explicitly check that isGlob is undefined, preventing a false negat…
Browse files Browse the repository at this point in the history
…ive on empty strings
  • Loading branch information
patrickkettner committed Jul 15, 2014
1 parent fe77394 commit 8e0ce0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ the output would be `./foo/bar.html` and `./foo/baz.html`
I had to work with several hundred repeated data structures that never changed. Keeping them all in html was silly, but pushing out a template engine for the end user to compile the same information multiple times was even sillier. This allows you to have your templated cake and eat it too.

## Release History
* 0.7.6 - Kristofferson - explicitly check that `isGlob` is undefined, preventing a false negative on empty strings
* 0.7.5 - Redford - add `registerFullPath` option to prevent partial/helper registration clobbering, update README
* 0.7.4 - M. Jean - don't send objects to handlebars.compile, code cleanup
* 0.7.3 - Cousin Ben - switch from require to readFile to allow for html in partials
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-compile-handlebars",
"description": "Compile handlebar templates, outputting static HTML",
"version": "0.7.5",
"version": "0.7.6",
"homepage": "https://github.com/patrickkettner/grunt-compile-handlebars",
"author": {
"name": "Patrick Kettner",
Expand Down
2 changes: 1 addition & 1 deletion tasks/compile-handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module.exports = function(grunt) {
if (grunt.file.exists(filename)) {
return filename;
}
if (isGlob(filename)) {
if (isGlob(filename) !== undefined) {
return isGlob(filename) + basename + filetype(filename);
}
return filename;
Expand Down

0 comments on commit 8e0ce0f

Please sign in to comment.