NIHVIVO-825 Allow adding a list of scripts or stylesheets with a single call to add() or addFromTheme()
This commit is contained in:
parent
2968a09613
commit
ee782cdfd7
1 changed files with 12 additions and 0 deletions
|
@ -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 = "";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue