Skip to content
A Utility Library for batman.js
CoffeeScript
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.
README.md
batman.utility.belt.js
batman.utilitybelt.coffee

README.md

batman.utilitybelt

Utility Library for batman.js

Both .coffee and .js included

Installation

Add to website via <script src="/app/vendor/batman.utilitybelt.js" type="text/javascript"></script>

Features:

View all Routes

View all Routes:

In console:
var utilityBelt = new Batman.UtilityBelt(applicationName)
utilityBelt.displayRoutes();

Example (my apps name is called EST in est.coffee):
window.EST = class EST extends Batman.App

And then in console:
var utilityBelt = new Batman.UtilityBelt(EST)
utilityBelt.displayRoutes();

Example Output:
Total number of routes: 5

__Controller__ __Action__ __Pattern__
app index /
rows edit /rows/:id/edit
rows index /rows
rows new /rows/new
rows show /rows/:id

Contributors

  • RyanonRails
  • MathieuGilbert
You can’t perform that action at this time.