Sha256: 35bcc745f5cb228043f156669790e7f19b5b903700787cb28d376950523aff78

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

class <%= app_class %> < LucidApp::Base
  render do
    Router(hook: Preact.location_hook(props.location)) do
      Switch do
        Route(path: '/', component: HelloComponent.JS[:preact_component])
        Route(path: '/welcome', component: WelcomeComponent.JS[:preact_component])
        Route(component: NotFound404Component.JS[:preact_component])
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
isomorfeus-2.0.0.rc3 lib/isomorfeus/installer/templates/my_app.rb.erb
isomorfeus-2.0.0.rc2 lib/isomorfeus/installer/templates/my_app.rb.erb
isomorfeus-2.0.0.rc1 lib/isomorfeus/installer/templates/my_app.rb.erb