From: Lane S. <la...@op...> - 2003-07-06 02:28:39
|
Eric B. Ridge wrote: > On Saturday, July 5, 2003, at 07:26 PM, Brian Goetz wrote: > > > so are you saying that WM will continue to write to a FastWriter, but > then only to the OutputStream once the rendering is complete? > > eric If I know Brian, it will be some decorator around FastWriter that extends OutputStream: instead of this... FastWriter w; w = context.getBroker().getFastWriter(out, encoding); context.put("FastWriter", w); // allow template writers to access the output stream! tmpl.write(w, context); w.flush(); we could have: OutputStream o; o = context.getBroker().getOutputStream(System.out, encoding); // send template to s.o context.put("Writer", o); // allow template writers to access the output stream! tmpl.write(w, context); o.flush(); Is this close to what you are proposing, Brian? Lane > > >> >>> i.e. we really should be able to let end users trivially output the >>> results >>> of a template to a String >> >> >> FW does this already. We can expose this via templates. >> >>> This is just one reason why exposing FastWriter is bad news. Why >>> should it >>> even be exposed at all anyway?! Just make it delegate to a normal >>> Writer >>> and have no "public API" methods that use it. >> >> >> That's the plan. >> >> >> ------------------------------------------------------- >> This SF.Net email sponsored by: Free pre-built ASP.NET sites including >> Data Reports, E-commerce, Portals, and Forums are available now. >> Download today and enter to win an XBOX or Visual Studio .NET. >> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/ >> 01 >> _______________________________________________ >> Webmacro-devel mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/webmacro-devel > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Webmacro-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-devel > |