Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified version of Kitson's patch to support declarative require in …
…the parser: 1. Before looking for data-dojo-type nodes, the parser scans for <script type="dojo/require"> nodes, loads the specified modules, and then (asynchronously) continues the parse. If no <script type="dojo/require"> tags are present, parsing is synchronous like before. 2. <script type="dojo/require"> syntax: hash mapping variable name to module id, ex: <script type="dojo/require"> baz: "acme/baz", zing: "acme/zing" </script> 3. Parser return value: The parser's return value can be used as a Promise. In addition, for backwards compatibility, for markup without <script type=dojo/require> tags, the return value can be used as an array of widgets. (This code is common to #14591.) 4. Corresponding changes to html.!ContentSetter and dijit/layout/!ContentPane to handle asynchronous parsing. These changes were taken from #14591 and tests will be added later when that ticket is closed. Fixes #15118, refs #14591 !strict.
- Loading branch information