 _                  = require('lodash')
-path               = require('path')
+{ join }           = require('path')
 crumble            = require('../modules/crumble')
 humanReadableUrl   = require('../modules/humanReadableUrl')
 i18nTools          = require('../modules/i18n-tools')

    data                : grunt.config('data')
    nunjucksEnv         : grunt.config('path.source.templates')
    files:
      cwd               : grunt.config('path.source.templates') + '/'
      src               : ['{,**/}*.{nj,html}', '!{,**/}_*.{nj,html}']
      dest              : grunt.config('path.build.root') + '/'
      ext               : '.html'
      matter            : grunt.config('file.temp.data.matter')
    humanReadableUrls:


      files: [
        expand: true
        cwd: taskConfig.files.cwd
        src: taskConfig.files.src
        dest: join(taskConfig.files.dest, localeDir)
        ext: taskConfig.files.ext
        rename: (dest, src) =>
          src = if taskConfig.humanReadableUrls.enabled then humanReadableUrl(src, taskConfig.humanReadableUrls.exclude) else src
          join(dest, src)
      ]

  ###
