Permalink
Browse files

Update README.md

  • Loading branch information...
gudleik committed May 13, 2012
1 parent 25d193b commit 24bc4ad8bf118671f0ebf9c57473f1c80d39dafc
Showing with 7 additions and 2 deletions.
  1. +7 −2 README.md
View
@@ -39,11 +39,16 @@ Some examples:
# A simple coffeescript class:
class namespace("App.Models").Product
# this class will be known as App.Models.Product
-
+ # Run AutoexecBat on all tags with a data-autoexec attribute (using jQuery)
jQuery ->
- # Run AutoexecBat on all tags with a data-autoexec attribute
$('[data-autoexec]').autoexec()
+
+ # y u no got jquery?
+ # Run it manually or use whatever
+ AutoexecBat.run "App.Products.Show"
+ # or
+ App.Products.Show.autoexec()
Finally, just add the module name to a data-autoexec attribute:

0 comments on commit 24bc4ad

Please sign in to comment.