From: Brian G. <br...@qu...> - 2004-03-02 17:50:38
|
> > Simple! > > Twice as big as necessary. No, it means that it can serve different kinds of consumers. It doesn't force servlets to do things in terms of strings (or writers, like Melati does) if they don't want to, and it doesn't force other apps to use output streams. It makes it easier for both kinds of consumers. > public interface Template { > void write(MelatiWriter out, TemplateContext templateContext, > TemplateEngine engine) throws TemplateEngineException; > } What we are doing now is CLOSER to this, not farther. You're just resisting the change because its work, not because its better or worse. > You have made it such that the programmer now needs to know and care > what she is rendering to. Wrong. You only have to use ONE of them. Pick which is more convenient and just use it! |