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