All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lonelystorm.air.asset.models.AssetTheme Maven / Gradle / Ivy

Go to download

The LonelyStorm Air Asset library provides support to be able to compile SASS files at runtime.

There is a newer version: 0.1.8
Show newest version
package com.lonelystorm.air.asset.models;

import javax.annotation.PostConstruct;
import javax.inject.Inject;

import org.apache.sling.api.resource.Resource;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.Self;

@Model(adaptables = Resource.class)
public class AssetTheme extends Asset {

    @Self
    private Resource resource;

    @Inject
    private String[] themes;

    public String[] getThemes() {
        return themes.clone();
    }

    @PostConstruct
    protected void construct() {
        setPath(resource.getPath());
        setSources(resource);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy