Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

note about autoRequire in README

  • Loading branch information...
commit d87e48b337104d56e21612671756ad4d6f310bdd 1 parent 714d4da
@gudleik gudleik authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 README.md
View
9 README.md
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.