<< Click to Display Table of Contents >> Navigation: IWCL > IntraWeb Library Loader > Parameters > Source |
Type: String
Description:
The Source parameter specifies which IWML file to load first when the application starts. It tells IntraWeb.js where to begin rendering the page.
Special Behavior:
Using the special value * enables auto-load mode. In this mode, the runtime will try to infer the IWML file automatically, usually by replacing the .js extension of the current file with .iwml.
Usage Notes:
This parameter is essential if you want your page to load a layout automatically when it starts.
Example usage:
Explicit file:
<script src="/IntraWeb.js" data-Source="/Pages/Main.iwml"></script>
Autoload mode:
<script src="/Pages/Main.js" data-Source="*"></script>
This will automatically attempt to load Main.iwml.