lib/inesita/cli/template/app/components/layout.rb in inesita-0.0.10 vs lib/inesita/cli/template/app/components/layout.rb in inesita-0.0.11
- old
+ new
@@ -1,9 +1,11 @@
class Layout
include Inesita::Layout
+ components :navbar
+
def initialize
- component :navbar, NavBar.new
+ @navbar ||= NavBar.new
end
def render
div do
div class: 'container' do