Sha256: 0a598477190416047f8c204587d100bb44f4d0dd63299dfd63cb8a6c5cef4081

Contents?: true

Size: 498 Bytes

Versions: 15

Compression:

Stored size: 498 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.container do
      component NavBar
      component router
    end
  end
end


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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
inesita-1.0.pre.9 lib/inesita/cli/template/app/application.rb.tt
inesita-1.0.pre.8 lib/inesita/cli/template/app/application.rb.tt
inesita-1.0.pre.7 lib/inesita/cli/template/app/application.rb.tt
inesita-1.0.pre.6 lib/inesita/cli/template/app/application.rb.tt
inesita-1.0.pre.5 lib/inesita/cli/template/app/application.rb.tt
inesita-1.0.pre.4 lib/inesita/cli/template/app/application.rb.tt
inesita-1.0.pre.3 lib/inesita/cli/template/app/application.rb.tt
inesita-1.0.pre.2 lib/inesita/cli/template/app/application.rb.tt
inesita-1.0.pre.1 lib/inesita/cli/template/app/application.rb.tt
inesita-0.9.2 lib/inesita/cli/template/app/application.rb.tt
inesita-0.9.1 lib/inesita/cli/template/app/application.rb.tt
inesita-0.9.0 lib/inesita/cli/template/app/application.rb.tt
inesita-0.8.2 lib/inesita/cli/template/app/application.rb.tt
inesita-0.8.1 lib/inesita/cli/template/app/application.rb.tt
inesita-0.7.0 lib/inesita/cli/template/app/application.rb.tt