Make the "stylesheets" variable visible to the dump.ftl template, repairing a problem created by r9502.

This commit is contained in:
j2blake 2012-02-28 22:26:40 +00:00
parent fe044c759a
commit eb1ff58879

View file

@ -600,6 +600,9 @@ public abstract class BaseDumpDirective implements TemplateDirectiveModel {
protected void writeDump(Map<String, Object> map, Environment env, String templateName)
throws TemplateException, IOException {
// Make the stylesheets list visible to dump.ftl
map.put("stylesheets", env.getVariable("stylesheets"));
Template template = env.getConfiguration().getTemplate(templateName);
StringWriter sw = new StringWriter();
template.process(map, sw);