patrickkettner / grunt-compile-handlebars

grunt plugin to compile static html from a handlebars plugin
MIT License
115 stars 29 forks source link

Issue Compiling #9

Closed pburtchaell closed 10 years ago

pburtchaell commented 10 years ago

capture

patrickkettner commented 10 years ago

Looks like the result of this is not working.

I don't have access to windows at the moment, could you grunt.log out filename at the very top of getName and post the results.

pburtchaell commented 10 years ago

I think I have it fixed! I was running this:

'compile-handlebars': {

        Template: { 
            templateData: ['foo.json', 'bar.json'],
        }

}

Rather than:

'compile-handlebars': {

        Template: { 
            templateData: 'foo.json',
        }

}

I was doing that because I had two sets of data, one that changes and one that is "global" and does not.

patrickkettner commented 10 years ago

I have always globbed files, but I think an array also makes sense. Im reopening this as a feature to implement.

pburtchaell commented 10 years ago

Sounds good. Thanks for the help.