src/components/nav_bar.coffee in luca-0.9.1 vs src/components/nav_bar.coffee in luca-0.9.2
- old
+ new
@@ -1,24 +1,20 @@
_.def("Luca.components.NavBar").extends("Luca.View").with
fixed: true
-
position: 'top'
-
className: 'navbar'
-
- initialize: (@options={})->
- Luca.View::initialize.apply(@, arguments)
-
brand: "Luca.js"
-
bodyTemplate: 'nav_bar'
bodyClassName: 'luca-ui-navbar-body'
beforeRender: ()->
@$el.addClass "navbar-fixed-#{ @position }" if @fixed
if @brand?
@content().append("<a class='brand' href='#'>#{ @brand }</a>")
+
+ if @template
+ @content().append Luca.template(@template, @)
render: ()->
@
content: ()->