MashZone NextGen 10.2 | Appendix | Legacy Presto components | Apps and Workspaces | Custom Apps | App Specification Reference | <requires> or <require> | <require>
 
<require>
One file (HTML, CSS or JavaScript) that must be loaded with this app, with optional metadata to control loading behavior.
Can Contain
Empty
Allowed In
<app> or <requires>
Attributes
Name
Required
Description
type
yes
The type of file to load:
*html = an HTML page or fragment for this app.
*css = a CSS stylesheet that has not been configured in MashZone NextGen for automatic dependency loading.
*script = a JavaScript library that has not been configured in MashZone NextGen for automatic dependency loading.
*library = a JavaScript library that is configured in MashZone NextGen for automatic dependency loading. Configured libraries, also known as named libraries, can contain any number of JavaScript or CSS files and declare any JavaScript dependencies.
src
conditional
For all files that are not named MashZone NextGen libraries (type != library), this is the relative or absolute URL to the file to load with this app.
Relative URLs must point to files within the app package (see App Packages and App Files for more information). They cannot use paths that redirect up the folder tree past the app’s root folder, such as ../above-root/myLibrary.js.
name
conditional
For named MashZone NextGen libraries (type = ’library’), the name of the library to load.
Important: MashZone NextGen includes certain "third party software" which JackBe licenses from third parties. Pursuant to the JackBe EULA for MashZone NextGen, all MashZone NextGen users are bound by the license terms and conditions of any third party software licenses. You may review these Third Party Licenses at http://documentation.softwareag.com/legal/.
Software AG does not and cannot authorize any use of third party software that is not permitted by these third party software licenses. You may, however, be able to obtain licenses directly from third parties. In addition, any other software that you add and/or use in connection with MashZone NextGen is subject to its own licensing requirements and may void the terms of the EULA for MashZone NextGen.
version
conditional
Identifies a version of this app resource. The specific value and meaning of the resource version depends on the value of the type attribute:
*For type = 'library' (named MashZone NextGen libraries), this idenfies the specific version of the named library to load. If you omit the version, the current version is loaded.
*For type != 'library' (any other file), you can use this attribute to ensure that browsers load updated files rather than cached versions.
When you update an app resource, change this attribute to a number greater than the previous version number, if any. The MashZone NextGen App Framework adds this number to the URL for the resource which ensures that browsers download the updated resource rather than using a cached file.
Tip: It is a good practice to use simple integers as version numbers for app resources.
loadconfirmation
A boolean expression containing one or more JavaScript namespaces or objects from this library that must exist at runtime to confirm that this library is completely loaded. For example:
MyOrg &amp;&amp; MyOrg.Config
Important: Because the App Spec is XML, the JavaScript & operator must be escaped using &amp;, the XML escape for this character.
This expression is not required but is highly recommended to ensure that libraries for the app are properly loaded before rendering.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release