Skip to content

ryanjones/batman.utilitybelt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A Utility Library for batman.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published