NIHVIVO-825 Allow adding a list of scripts or stylesheets with a single call to add() or addFromTheme()

This commit is contained in:
rjy7 2010-07-27 15:15:45 +00:00
parent 2968a09613
commit ee782cdfd7

View file

@ -30,11 +30,23 @@ public abstract class FileList extends BaseTemplateModel {
list.add(getUrl(path));
}
public void add(String... paths) {
for (String path : paths) {
add(path);
}
}
public void addFromTheme(String path) {
path = themeDir + getThemeSubDir() + path;
add(path);
}
public void addFromTheme(String... paths) {
for (String path : paths) {
addFromTheme(path);
}
}
public String getTags() {
String tags = "";