1 package org.apache.turbine.pipeline; 2 3 56 57 import org.apache.turbine.RunData; 58 import org.apache.turbine.modules.Module; 59 import org.apache.turbine.TemplateContext; 60 import org.apache.turbine.TurbineException; 61 import org.apache.commons.logging.Log; 62 import org.apache.commons.logging.LogFactory; 63 64 74 public class DirectRenderer 75 extends Renderer 76 { 77 private static final Log log = LogFactory.getLog(DirectRenderer.class); 78 79 private static final String EMPTY = ""; 80 81 public DirectRenderer(RunData data) 82 { 83 super(data); 84 } 85 86 90 public String render(String template) 91 throws TurbineException, Exception 92 { 93 log.debug("Rendering template " + template); 94 95 TemplateContext context = Module.getTemplateContext(data); 96 97 Module.handleRequest(context, template, data.getOut()); 98 99 return EMPTY; 100 } 101 } 102 103 | Popular Tags |