public final class WebAssetsUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
protected static void |
addCSSResources(JcmsJspContext jcmsContext,
java.lang.String feature)
Adds CSS resources to jcmsContext resources declared using feature id.
|
protected static void |
addJSResources(JcmsJspContext jcmsContext,
java.lang.String feature)
Adds JS resources to jcmsContext resources declared using feature id.
|
static void |
addScrollbarWebAssets(JcmsJspContext jcmsContext)
Add web assets for the scrollbar library.
|
static void |
addWebAssets(JcmsJspContext jcmsContext,
java.lang.String feature)
Adds given feature web assets to given context.
|
protected static java.util.Collection<java.lang.String> |
getResources(java.lang.String property)
Loads a collection of ordered (web assets) resources given the property.
|
public static final java.lang.String REVISION
public static void addScrollbarWebAssets(JcmsJspContext jcmsContext)
jcmsContext
- the context to fill with new JS/CSS resourcespublic static void addWebAssets(JcmsJspContext jcmsContext, java.lang.String feature)
Feature assets are declared using properties syntax:
jcms.front.resources.{feature-id}.js: relative JS file list, comma separated jcms.front.resources.{feature-id}.css: relative CSS file list, comma separated
jcmsContext
- the context to fill with new JS/CSS resourcesfeature
- a feature id, declared using propertiesprotected static void addJSResources(JcmsJspContext jcmsContext, java.lang.String feature)
jcmsContext
- the context to fill with new JS/CSS resourcesfeature
- the feature idprotected static void addCSSResources(JcmsJspContext jcmsContext, java.lang.String feature)
jcmsContext
- the context to fill with new JS/CSS resourcesfeature
- the feature idprotected static java.util.Collection<java.lang.String> getResources(java.lang.String property)
property
- the property to load associated resourcesCopyright © 2001-2019 Jalios SA. All Rights Reserved.