From: mh Date: Mon, 8 Apr 2002 23:45:16 +0000 (+0000) Subject: added a comment: why not pass the whole config hashMap to the templates? X-Git-Tag: prexmlproducerconfig~127 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=37223535dfefdd76d3a4c916ec5bb58beeda7108;p=mir.git added a comment: why not pass the whole config hashMap to the templates? --- diff --git a/source/mir/misc/HTMLTemplateProcessor.java b/source/mir/misc/HTMLTemplateProcessor.java index f203920d..c2f10f23 100755 --- a/source/mir/misc/HTMLTemplateProcessor.java +++ b/source/mir/misc/HTMLTemplateProcessor.java @@ -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));