grunt-assemble-permalinks icon indicating copy to clipboard operation
grunt-assemble-permalinks copied to clipboard

rename replacement patterns

Open jonschlinkert opened this issue 10 years ago • 2 comments

Currently we use the name patterns the options (huh!? who's bad idea was this!? okay it was me...):

options: {
  permalinks: {
    structure: ':author/:basename/index.html',
    patterns: [
      {
        pattern: ':author',
        replacement: '<%= _str.slugify(pkg.author.name) %>'
      }
    ]
  }
}

replacements makes much more sense:

options: {
  permalinks: {
    structure: ':author/:basename/index.html',
    replacements: [
      {
        pattern: ':author',
        replacement: '<%= _str.slugify(pkg.author.name) %>'
      }
    ]
  }
}

jonschlinkert avatar Mar 27 '14 21:03 jonschlinkert

+1 I think we use patterns for another helper or plugin too.

doowb avatar Mar 27 '14 21:03 doowb

? do you mean replacements?

jonschlinkert avatar Mar 27 '14 22:03 jonschlinkert