added generateFO and generatePDF to the config hash.
[mir.git] / source / mir / misc / HTMLTemplateProcessor.java
index 062fd39..544e161 100755 (executable)
@@ -33,6 +33,8 @@ public final class HTMLTemplateProcessor {
   private static String               imagePath;
   private static String               openAction;
   private static String               defEncoding;
+  private static String               generateFO;
+  private static String               generatePDF;
   protected static String producerDocRoot =
                MirConfig.getProp("Producer.DocRoot");
   protected static String producerStorageRoot =
@@ -70,6 +72,8 @@ public final class HTMLTemplateProcessor {
     imagePath = MirConfig.getProp("Producer.Image.Path");
     producerDocRoot = MirConfig.getProp("Producer.DocRoot");
     producerStorageRoot = MirConfig.getProp("Producer.StorageRoot");
+    generateFO = MirConfig.getProp("GenerateFO");
+    generatePDF = MirConfig.getProp("GeneratePDF");
   }
 
   /**
@@ -249,6 +253,8 @@ public final class HTMLTemplateProcessor {
                configHash.put("mirVersion", new SimpleScalar(MirConfig.getProp("Mir.Version")));
                // this conform to updated freemarker syntax
                configHash.put("compressWhitespace", new freemarker.template.utility.CompressWhitespace() );
+               configHash.put("generateFO", new SimpleScalar(generateFO));
+               configHash.put("generatePDF", new SimpleScalar(generatePDF));
 
                SimpleHash outPutHash = new SimpleHash();