When working on HTML for Batman.View
s, it can be annoying to refresh and navigate back to wherever you were. Hacking into Batman.HTMLStore
enables you to reload HTML without refreshing
Dynamically-Generated Headers for ActiveResource Requests
Need to add a header to an ActiveResource request? If you need to do it at dynamically at request-time, redefine .headers
.
Debugging Keypaths in Batman.js Views
Debugging can be tedious, especially when cntl-R
is your only resort for trying new options. Instead, use batman.js’s $context
function to access the context of a specific node.
Batman.js testing with Karma and Jasmine
Slim Templates with Batman.js and the Rails Asset Pipeline
Dynamic Navigation View with Batman.js
Creating a dynamic, context-based navigation menu is a breeze with batman.js and batman-rails thanks to Batman’s data-route view binding and the object[key] view filter. Here’s how I did it.
Lessons Learned on Google App Engine
My involvement with a Google App Engine-based project is winding down, so I’ll share what I’ve learned.
Load Batman.js Models from Specific Urls
Batman.js’s REST Storage Adapter provides a clean interface for operating on records with vanilla REST urls – but what about when you need a lil’ something more?
Adding Batman.js to an Existing Rails App
I had an existing app, but I wanted to take the front end to the next level. Batman.js is a full-featured, developer-friendly, Rails-inclined CoffeeScript (or JavaScript) framework with powerful Rails integration.
Convert country names and codes with Countrysaurus
Countrysaurus is an online tool for merging country codes into a CSV spreadsheet with country names in it. You can also download a CSV of country codes or access it via REST API.