Lines Matching defs:output

37 import com.google.clearsilver.jsilver.output.InstanceOutputBufferProvider;
38 import com.google.clearsilver.jsilver.output.OutputBufferProvider;
39 import com.google.clearsilver.jsilver.output.ThreadLocalOutputBufferProvider;
73 * // Render template to System.out. Writer output = ...;
74 * jSilver.render("say-hello", data, output);
104 // Object used to return Appendable output buffers when needed.
125 // Setup the output buffer provider either with a threadlocal pool
239 * Renders a given template and provided data, writing to an arbitrary output.
243 * @param output Where template should be rendered to. This can be a Writer, PrintStream,
249 public void render(String templateName, Data data, Appendable output,
252 render(templateLoader.load(templateName, resourceLoader, escapeMode), data, output,
257 * Renders a given template and provided data, writing to an arbitrary output.
261 * @param output Where template should be rendered to. This can be a Writer, PrintStream,
265 public void render(String templateName, Data data, Appendable output) throws IOException,
267 render(templateName, data, output, defaultResourceLoader);
276 Appendable output = createAppendableBuffer();
278 render(templateName, data, output);
279 return output.toString();
281 releaseAppendableBuffer(output);
286 * Renders a given template and provided data, writing to an arbitrary output.
290 * @param output Where template should be rendered to. This can be a Writer, PrintStream,
295 public void render(Template template, Data data, Appendable output, ResourceLoader resourceLoader)
297 if (options.getStripHtmlWhiteSpace() && !(output instanceof HtmlWhiteSpaceStripper)) {
299 output = new HtmlWhiteSpaceStripper(output);
301 template.render(data, output, resourceLoader);
305 * Renders a given template and provided data, writing to an arbitrary output.
309 * @param output Where template should be rendered to. This can be a Writer, PrintStream,
314 public void render(Template template, Data data, Appendable output) throws IOException,
316 render(template, data, output, defaultResourceLoader);
321 Appendable output = createAppendableBuffer();
323 render(template, data, output);
324 return output.toString();
326 releaseAppendableBuffer(output);
336 * @param output Where template should be rendered to. This can be a Writer, PrintStream,
341 public void renderFromContent(String content, Data data, Appendable output) throws IOException,
344 render(templateLoader.createTemp("[renderFromContent]", content, escapeMode), data, output);
353 Appendable output = createAppendableBuffer();
355 renderFromContent(content, data, output);
356 return output.toString();
358 releaseAppendableBuffer(output);
425 public void loadData(String dataFileName, Data output) throws JSilverBadSyntaxException,
427 dataFactory.loadData(dataFileName, defaultResourceLoader, output);