Batman.js is no longer in production at Shopify and is not actively maintained.

This website is left for reference (and for old times' sake).


Batman.js bindings are created when a Batman.View passes itself to the Batman.BindingParser constructor. When initialized, the Batman.BindingParser pulls out data- attributes from the view's HTML and uses them to instantiate new bindings.

Help us improve our documentation!

Contributions to this page are welcome on Github. If you find a problem but you cannot fix it, please open an issue.

Discussion regarding batman.js documentation is also welcome on our mailing list.