Sha256: f601546ce23cb46380ba09026858d99d717752f21674fa3e1f022d6be4b527b0

Contents?: true

Size: 507 Bytes

Versions: 2

Compression:

Stored size: 507 Bytes

Contents

# require Inesita
require 'inesita'
require 'inesita-router'

# require main parts of application
require 'router'
require 'store'

# require all components
require_tree './components'

# when document is ready render application to <body>

class Application
  include Inesita::Component

  inject Router
  inject Store

  def render
    div class: 'container' do
      component NavBar
      component router
    end
  end
end


Inesita::Browser.ready? do
  Application.mount_to(Inesita::Browser.body)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inesita-0.6.1 lib/inesita/cli/template/app/application.rb.tt
inesita-0.6.0 lib/inesita/cli/template/app/application.rb.tt