1 package org.cacert.gigi.output.template;
3 import java.io.PrintWriter;
4 import java.util.Collection;
7 import org.cacert.gigi.localisation.Language;
12 public final class OutputVariableCommand implements Translatable {
14 private final String raw;
16 private final boolean unescaped;
19 * Creates a new OutputVariableCommand.
22 * the variable to emit. If starting with <code>!</code> the
23 * variable is emitted non-HTML-escaped.
25 public OutputVariableCommand(String raw) {
26 if (raw.charAt(0) == '!') {
28 this.raw = raw.substring(1);
36 public void output(PrintWriter out, Language l, Map<String, Object> vars) {
37 Template.outputVar(out, l, vars, raw, unescaped);
41 public void addTranslations(Collection<String> s) {}