1 package org.cacert.gigi.output.template;
3 import java.io.PrintWriter;
6 import org.cacert.gigi.localisation.Language;
7 import org.cacert.gigi.output.Outputable;
9 class TemplateBlock implements Outputable {
15 public TemplateBlock(String[] contents, Outputable[] vars) {
16 this.contents = contents;
21 public void output(PrintWriter out, Language l, Map<String, Object> vars) {
22 for (int i = 0; i < contents.length; i++) {
23 out.print(contents[i]);
24 if (i < this.vars.length) {
25 this.vars[i].output(out, l, vars);