Class ToolkitPack
java.lang.Object
org.apache.juneau.console.freemarker.ToolkitPack
One named toolkit pack: ordered CSS and JS asset paths, the packs it depends on, its
ToolkitPack.Kind, and the
resolver that turns each path into a URL.
Register one through ConsoleFreemarkerMixin.Builder.registerToolkitPack(ToolkitPack). A pack registered
under an existing name replaces that pack completely, including its dependsOn.
Example:
ToolkitPack.
- Since:
- 10.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forToolkitPack.static enumWhere a pack's assets are emitted on the page. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolkitPack.BuilderStarts a pack.cssPaths()Returns the ordered CSS asset paths.Returns the names of the packs this one loads after, in order.jsPaths()Returns the ordered JS asset paths.kind()Returns the pack kind.name()Returns the pack name.resolver()Returns the asset-URL resolver.
-
Method Details
-
create
Starts a pack.- Parameters:
name- The pack name. Must not be blank.- Returns:
- A new builder.
-
name
Returns the pack name.- Returns:
- The pack name.
-
cssPaths
Returns the ordered CSS asset paths.- Returns:
- The ordered CSS asset paths.
-
jsPaths
Returns the ordered JS asset paths.- Returns:
- The ordered JS asset paths.
-
dependsOn
Returns the names of the packs this one loads after, in order.- Returns:
- The names of the packs this one loads after, in order.
-
kind
Returns the pack kind.- Returns:
- The pack kind.
-
resolver
Returns the asset-URL resolver.- Returns:
- The asset-URL resolver.
-