This application-scoped object that exposes djuncts to URL.
This request-scope object keeps track of which
<st:adjunct>tag to load adjunct into the page. This tag expands to the
<link>tags for the adjunct itself and all the dependencies. It also remembers what adjuncts are already loaded into the page, so when multiple
<st:adjunct>tags are used to load different libraries, it won't repeatedly load the same script.
Adjuncts are identified by their fully qualified names, which is the package name + base name of the file name (this is just like how a Java class gets its FQCN.)
// @include fully.qualified.adjunct.name /* @include fully.qualified.adjunct.name
HTML file can have the following line to indicate a dependency.
Stapler loads an adjunct into a page by generating a link tag and a script tag to load the JS and CSS files,
respectively. The URLs these tags point to are served by
AdjunctManager. If an HTML file is a part of an adjunct,
its content is just included inline along with script and link tags. This is useful to write a glue to load a large
Copyright © 2017. All rights reserved.