```coffeescript
Bootstrap.BsPill = Bootstrap.ItemView.extend(Bootstrap.NavItem, Bootstrap.ItemSelection,
    template: Ember.Handlebars.compile '''
        {{#if view.content.linkTo}}
            {{#linkTo view.content.linkTo}}{{view.title}}{{/linkTo}}
        {{else}}
            {{view view.pillAsLinkView}}
        {{/if}}
    '''

    pillAsLinkView: Ember.View.extend(
        tagName: 'a'
        template: Ember.Handlebars.compile('{{view.parentView.title}}')
        attributeBindings: ['href']
        href: "#"
    )
)```

Support dynamic segment in links when model is provided in pills by providing a "dynamicLink" boolean property.
user
```coffeescript
Bootstrap.BsPill = Bootstrap.ItemView.extend(Bootstrap.NavItem, Bootstrap.ItemSelection,
    template: Ember.Handlebars.compile '''
        {{#if view.content.linkTo}}
            {{#if view.parentView.dynamicLink}}
                {{#link-to view.content.linkTo model}}{{view.title}}{{/link-to}}
            {{else}}
                {{#linkTo view.content.linkTo}}{{view.title}}{{/linkTo}}
            {{/if}}
        {{else}}
            {{view view.pillAsLinkView}}
        {{/if}}
    '''

    pillAsLinkView: Ember.View.extend(
        tagName: 'a'
        template: Ember.Handlebars.compile('{{view.parentView.title}}')
        attributeBindings: ['href']
        href: "#"
    )
)```
assistant