patrickkettner / grunt-compile-handlebars

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

Add possibility to use different files as templateData? #59

Closed ruben1 closed 9 years ago

ruben1 commented 9 years ago
var data;
if (Array.isArray(templateData)) {
    data = templateData[index];
    if (data) {
        return data;
    }

    grunt.log.error('You need to assign the same number of data files as source files when using array notation.');
}

So it looks like we can only use one template data to insert variables into templates. Is it possible to insert different data sources into the same file with a single output ?

patrickkettner commented 9 years ago

hey @ruben1! I am not following the question - could you be more detailed in what you are wanting to do?