Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
opal
spec
.gitignore
.travis.yml
Gemfile
LICENSE.md
README.md
Rakefile
inesita-router.gemspec

README.md

Inesita Router Gem Version Code Climate Build Status

Router for Inesita framework.

Example

class Router
  include Inesita::Router

  def auth
    unless store.logged_in?
      go_to('/login')
    end
  end

  def routes
    route '/', to: Home, on_enter: method(:auth)
    route '/list', to: List, on_enter: method(:auth)
    route '/login', to: Login
  end
end

Thank you!

Become Patreon

You can’t perform that action at this time.