webanno-support/src/main/java/de/tudarmstadt/ukp/clarin/webanno/support/sass/BootstrapSass.java
public static void install(final Application app,
            final SassCompilerOptionsFactory configFactory)
    {

        SassCacheManager cacheManager = new SassCacheManager(configFactory);
        cacheManager.install(app);

        IPackageResourceGuard resourceGuard = app.getResourceSettings().getPackageResourceGuard();
        if (resourceGuard instanceof SecurePackageResourceGuard) {
            SecurePackageResourceGuard securePackageResourceGuard = 
                    (SecurePackageResourceGuard) resourceGuard;
            securePackageResourceGuard.addPattern("+*.scss");
            securePackageResourceGuard.addPattern("+*.sass");
        }

        ResourceReferenceRegistry resourceReferenceRegistry = app.getResourceReferenceRegistry();
        IResourceReferenceFactory delegate = resourceReferenceRegistry
                .getResourceReferenceFactory();
        resourceReferenceRegistry
                .setResourceReferenceFactory(new SassResourceReferenceFactory(delegate));
    }
/**
     * Installs given settings for given application
     *
     * @param app
     *            The current application
     * @param configFactory
     *            The {@link SassCompilerOptionsFactory} to create new
     *            {@link io.bit3.jsass.Options}.
     */
Installs given settings for given application
@param app
The current application
@param configFactory
The  SassCompilerOptionsFactory to create new
io.bit3.jsass.Options.
Installs given settings for given application @param app The current application @param configFactory The SassCompilerOptionsFactory to create new io . bit3 . jsass . Options .
public static void install(final Application app,
            final SassCompilerOptionsFactory configFactory)
    {
        SassCacheManager cacheManager = new SassCacheManager(configFactory);
        cacheManager.install(app);
        IPackageResourceGuard resourceGuard = app.getResourceSettings().getPackageResourceGuard();
        if (resourceGuard instanceof SecurePackageResourceGuard) {
            SecurePackageResourceGuard securePackageResourceGuard = 
                    (SecurePackageResourceGuard) resourceGuard;
            securePackageResourceGuard.addPattern("+*.scss");
            securePackageResourceGuard.addPattern("+*.sass");
        }
        ResourceReferenceRegistry resourceReferenceRegistry = app.getResourceReferenceRegistry();
        IResourceReferenceFactory delegate = resourceReferenceRegistry
                .getResourceReferenceFactory();
        resourceReferenceRegistry
                .setResourceReferenceFactory(new SassResourceReferenceFactory(delegate));
    }
public static void install ( final Application app , final SassCompilerOptionsFactory configFactory ) { SassCacheManager cacheManager = new SassCacheManager ( configFactory ) ; cacheManager . install ( app ) ; IPackageResourceGuard resourceGuard = app . getResourceSettings ( ) . getPackageResourceGuard ( ) ; if ( resourceGuard instanceof SecurePackageResourceGuard ) { SecurePackageResourceGuard securePackageResourceGuard = ( SecurePackageResourceGuard ) resourceGuard ; securePackageResourceGuard . addPattern ( "+*.scss" ) ; securePackageResourceGuard . addPattern ( "+*.sass" ) ; } ResourceReferenceRegistry resourceReferenceRegistry = app . getResourceReferenceRegistry ( ) ; IResourceReferenceFactory delegate = resourceReferenceRegistry . getResourceReferenceFactory ( ) ; resourceReferenceRegistry . setResourceReferenceFactory ( new SassResourceReferenceFactory ( delegate ) ) ; }
Installs given settings for given application
 @param app
            The current application
 @param configFactory
            The {@link SassCompilerOptionsFactory} to create new
            {@link io.bit3.jsass.Options}.
Installs given settings for given application @param app The current application @param configFactory The { @link SassCompilerOptionsFactory } to create new { @link io . bit3 . jsass . Options } .