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.


To pass options to Mantri use the data attribute:

<script data-deps="/deps-app.js" src="js/vendor/mantri.web.js"></script>


Type: string Default: app

Define the entry point of your app. The value is a namespace that matches one of your goog.provide() declarations.


Type: string Default: /mantriConf.json

Define the location of your mantriConf.json file.


Type: string Default: /deps.js

Define the location of the deps.js file.