helper-slugify

Convert strings into URL slugs.

{{slugify}}

Convert strings into URL slugs.

In the root of your project, run the following in the command line:

npm i helper-slugify --save-dev
{{slugify "I am a word too, even though I am but a single letter: i!"}}

In your Gruntfile, simply add helper-slugify to the helpers property in the Assemble task or target options:

grunt.initConfig({
  assemble: {
    options: {
      helpers: ['helper-slugify']
    }
    ...
  }
});

With that completed, you may now being using the {{slugify}} helper in your Assemble project.