lib/mixins/view.js
function (options) {
      options = options || {};
      lazy.extend(options, this.options.excerpt || {});

      var re = /<!--+\s*more\s*--+>/;
      var str = this.content;
      var view = this;

      var link = options.link || '<a id="more"></a>';

      this.content = str.replace(re, function (match, i) {
        view.data.excerpt = str.slice(0, i).trim();
        view.data.more = str.slice(i + match.length).trim() + link;
        return '';
      });
      return this;
    }
function (options) {
      options = options || {};
      lazy.extend(options, this.options.excerpt || {});

      var re = /<!--+\s*more\s*--+>/;
      var str = this.content;
      var view = this;

      var link = options.link || '<a id="more"></a>';

      this.content = str.replace(re, function (match, i) {
        view.data.excerpt = str.slice(0, i).trim();
        view.data.more = str.slice(i + match.length).trim() + link;
        return '';
      });
      return this;
    }
function ( options ) { options = options || { } ; lazy . extend ( options , this . options . excerpt || { } ) ; var re = / <!--+\s*more\s*--+> / ; var str = this . content ; var view = this ; var link = options . link || '<a id="more"></a>' ; this . content = str . replace ( re , function ( match , i ) { view . data . excerpt = str . slice ( 0 , i ) . trim ( ) ; view . data . more = str . slice ( i + match . length ) . trim ( ) + link ; return '' ; } ) ; return this ; }
Generate an excerpt for a view.

```js
app.posts.get('foo.md')
.excerpt()
.render(function (err, res) {
//=>
});
```

@param {Object} `options` Excerpt options.
@option {Object} `template` Template to use for the excerpt tag.
@return {Object}
Generate an excerpt for a view .