Created
January 9, 2014 19:48
-
-
Save fitnr/8340708 to your computer and use it in GitHub Desktop.
Reduced test case for assemble variable scope bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: Page A | |
--- | |
I use the default template. No scripts here! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: special.hbs | |
title: special page | |
--- | |
I'm a special page. I have scripts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: x | |
--- | |
I also use the default layout. No scripts? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// Build HTML from templates and data | |
assemble: { | |
options: { | |
layoutdir: 'layouts', | |
layout: 'default.hbs', | |
}, | |
example: { | |
files: { | |
'dest/': ['content/*'] | |
} | |
} | |
}, | |
}); | |
grunt.loadNpmTasks('assemble'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "variable scope testing", | |
"description": "testing", | |
"devDependencies": { | |
"assemble": "~0.4.30" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment