added a comment: why not pass the whole config hashMap to the templates?
authormh <mh>
Mon, 8 Apr 2002 23:45:16 +0000 (23:45 +0000)
committermh <mh>
Mon, 8 Apr 2002 23:45:16 +0000 (23:45 +0000)
source/mir/misc/HTMLTemplateProcessor.java

index f203920..c2f10f2 100755 (executable)
@@ -226,6 +226,9 @@ public final class HTMLTemplateProcessor {
                        session=res.encodeURL("");
                }
 
+    // @todo wouldn't it be so much easier to just pass the whole damn config
+    // Hash here from Mirconfig... ??????? than we could access arbitrary config
+    // values in the templates. -mh
                // put standard configuration into tempalteRootmodel
                SimpleHash configHash = new SimpleHash();
                configHash.put("producerDocRoot", new SimpleScalar(producerDocRoot));