Skip to content

Latest commit

 

History

History
67 lines (58 loc) · 1.28 KB

README.md

File metadata and controls

67 lines (58 loc) · 1.28 KB

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