Utility Library for batman.js
Both .coffee and .js included
Add to website via <script src="/app/vendor/batman.utilitybelt.js" type="text/javascript"></script>
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 |
- RyanonRails
- MathieuGilbert