From: Eric R. <eb...@tc...> - 2003-12-08 23:52:28
|
On Jul 5, 2003, at 7:26 PM, Brian Goetz wrote: > What my plan is is to pass in an OutputStream and encoding to > template.write, and hide the FW implementation so it is internal only. > This is very easy and retains all the benefits of using FW. I realize I'm finally getting around to responding to a message that is 5 months old, but.... Why does org.webmacro.Template no longer "extend Macro"? Doesn't this prohibit one from simply referencing a template object that is in the context and have it expand correctly? For example: { context.put("MyTemplate", new StringTemplate("$foo")); } #set $foo = "FOO!" $MyTemplate isn't this broken now? eric |