NIHVIVO-564 Enable adding stylesheets in dump ftls
This commit is contained in:
parent
067f896a1f
commit
3317419fcf
3 changed files with 8 additions and 6 deletions
|
@ -8,6 +8,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
|
||||
import edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHelper;
|
||||
import edu.cornell.mannlib.vitro.webapp.web.templatemodels.filelist.StylesheetList;
|
||||
import freemarker.core.Environment;
|
||||
import freemarker.template.Configuration;
|
||||
import freemarker.template.SimpleDate;
|
||||
|
@ -81,6 +82,8 @@ public class DumpDirective implements TemplateDirectiveModel {
|
|||
map.put("includeTemplate", includeTemplate);
|
||||
map.put("type", type);
|
||||
|
||||
map.put("stylesheets", dataModel.get("stylesheets"));
|
||||
|
||||
FreemarkerHelper helper = new FreemarkerHelper();
|
||||
String output = helper.mergeMapToTemplate(templateName, map, config);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue