lib/mixins/view.js
function(filepath, fn) {
      fn = fn || lazy.dashify;
      if (typeof filepath === 'undefined') {
        var ctx = this.context();
        filepath = ctx.slug || this.path;
      }
      return fn(filepath);
    }
function(filepath, fn) {
      fn = fn || lazy.dashify;
      if (typeof filepath === 'undefined') {
        var ctx = this.context();
        filepath = ctx.slug || this.path;
      }
      return fn(filepath);
    }
function ( filepath , fn ) { fn = fn || lazy . dashify ; if ( typeof filepath === 'undefined' ) { var ctx = this . context ( ) ; filepath = ctx . slug || this . path ; } return fn ( filepath ) ; }
Returns a slugified filepath. If `filepath` is not passed,
`view.data.slug` or `view.path` will be slugified.
Returns a slugified filepath . If filepath is not passed view . data . slug or view . path will be slugified .