Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

globalJsonGlobbedTemplate templateData path fix #63

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
tmp
npm-debug.log
.DS_Store
21 changes: 21 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,27 @@ module.exports = function(grunt) {
}
]
},
globalJsonGlobbedTemplateSeparateLocations: {
files: [{
expand: true,
cwd: 'test/fixtures/',
src: 'deepSeparateHbs/**/*.handlebars',
dest: 'tmp/',
ext: '.html'
}],
templateData: 'test/fixtures/deepSeparateJson/**/*.json',
helpers: 'test/helpers/**/*.js',
partials: 'test/fixtures/deep/shared/**/*.handlebars',
globals: [
'test/globals/info.json',
'test/globals/textspec.json',
{
textspec: {
"ps": "P.S. from Gruntfile.js"
}
}
]
},
registerFullPath: {
files: [{
src: '<h1>{{salutation}}{{punctuation}} {{location}}</h1>{{> test/fixtures/deep/shared/pathTest}}',
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,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
* 2.0.3 - Bumped deps
* 2.0.2 - Gadge - fixup Grunt PeerDeps requirement for 1.0 compatibility, have templateData return an empty object when omitted
* 2.0.1 - Candy - @jrylander updated the lodash dependency to fix breakages introduced in lodash v4
* 2.0.0 - Jed - @timhettler rewrote larges swaths of the task to use the [Grunt file object](http://gruntjs.com/configuring-tasks#files-object-format)
Expand Down
Loading