The Script Element
To start loading your application you only need to have one script
element in your document:
<script src="js/vendor/mantri.web.js"></script>
Not For Production!
The mantri.web.js
file should not exist in your production environment. So make sure you remove it at deployment.
Options
To pass options to Mantri use the data
attribute:
<script data-deps="/deps-app.js" src="js/vendor/mantri.web.js"></script>
data-require
Type: string
Default: app
Define the entry point of your app. The value is a namespace that matches one of your goog.provide()
declarations.
data-config
Type: string
Default: /mantriConf.json
Define the location of your mantriConf.json
file.
data-deps
Type: string
Default: /deps.js
Define the location of the deps.js
file.