private static String imageHost;
private static String imagePath;
private static String openAction;
+ private static String generateFO;
+ private static String generatePDF;
protected static String producerDocRoot =
MirConfig.getProp("Producer.DocRoot");
protected static String producerStorageRoot =
//
// init
- static {
+ static {
/** @todo either in the above block or here :) //rk */
templateDir = MirConfig.getPropWithHome("HTMLTemplateProcessor.Dir");
templateCache = new FileTemplateCache(templateDir);
imagePath = MirConfig.getProp("Producer.Image.Path");
producerDocRoot = MirConfig.getProp("Producer.DocRoot");
producerStorageRoot = MirConfig.getProp("Producer.StorageRoot");
+ generateFO = MirConfig.getProp("GenerateFO");
+ generatePDF = MirConfig.getProp("GeneratePDF");
}
/**
configHash.put("imageHost", new SimpleScalar(imageHost));
configHash.put("imagePath", new SimpleScalar(imagePath));
configHash.put("mirVersion", new SimpleScalar(MirConfig.getProp("Mir.Version")));
- // this conform to updated freemarker syntax
+ configHash.put("generateFO", new SimpleScalar(generateFO));
+ configHash.put("generatePDF", new SimpleScalar(generatePDF));
+ // this conform to updated freemarker syntax
configHash.put("compressWhitespace", new freemarker.template.utility.CompressWhitespace() );
SimpleHash outPutHash = new SimpleHash();