_.def("Luca.components.NavBar").extends("Luca.View").with fixed: true position: 'top' className: 'navbar' brand: "Luca.js" bodyTemplate: 'nav_bar' bodyClassName: 'luca-ui-navbar-body' beforeRender: ()-> @$el.addClass "navbar-fixed-#{ @position }" if @fixed if @brand? @content().append("#{ @brand }") if @template @content().append Luca.template(@template, @) render: ()-> @ content: ()-> @$('.container').eq(0)