Sha256: a8fe6a7a8ef628d25fd64f42464eaec3c60d412c269889802df9f17223e1125e
Contents?: true
Size: 895 Bytes
Versions: 3
Compression:
Stored size: 895 Bytes
Contents
# Inesita Router [![Gem Version](https://badge.fury.io/rb/inesita-router.svg)](http://badge.fury.io/rb/inesita-router) [![Code Climate](https://codeclimate.com/github/inesita-rb/inesita-router/badges/gpa.svg)](https://codeclimate.com/github/inesita-rb/inesita-router) [![Dependency Status](https://gemnasium.com/inesita-rb/inesita-router.svg)](https://gemnasium.com/inesita-rb/inesita-router) [![Build Status](https://travis-ci.org/inesita-rb/inesita-router.svg?branch=master)](https://travis-ci.org/inesita-rb/inesita-router) Router for [Inesita](https://github.com/inesita-rb/inesita) framework. ## Example ```ruby 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 ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
inesita-router-0.2.1 | README.md |
inesita-router-0.2.0 | README.md |
inesita-router-0.1.0 | README.md |