Skip to content

path_to_data to accept array of strings inside Gruntfile too? #3

@scottlet

Description

@scottlet

I would love for the path_to_data option to be able to accept an array of strings as well as a string as it can inside of the data.json files. I'm trying to build an i18n enabled website and want to be able to run this inside of a Grunt custom task to loop through and build separate templates from a single source with multiple languages, eg:
path_to_data: ['json/site.json', 'json/i18n/en.json'],
path_to_data: ['json/site.json', 'json/i18n/de.json']

etc.

What do you think of this idea? If you like it, I'll happily fork this and provide a pull request if needed :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions