Permalink
Browse files

note about autoRequire in README

  • Loading branch information...
1 parent 714d4da commit d87e48b337104d56e21612671756ad4d6f310bdd @gudleik gudleik committed May 13, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 README.md
View
@@ -55,10 +55,17 @@ Finally, just add the module name to a data-autoexec attribute:
<body data-autoexec="App.Products.Index">
If the given module doesn't exist, it tries to execute a parent module.
-In this case, the module App.Products.autoexec() will be executed:
+In this case, App.Products.autoexec() will be executed:
<div data-autoexec="App.Products.Dev.Null">..</div>
+### Auto-require
+
+If you have a module that you want to be included always, you can instruct AutoexecBat to require it:
+
+ AutoexecBat.autoRequire = "App.My.Module"
+
+Note: this will only work with modules defined with define().
## Installation

0 comments on commit d87e48b

Please sign in to comment.