1
Vote

Ability to render RazorTemplateBase to TextWriter

description

It is very usefull to render template (@* Generator : Template *@) to TextWriter - not to StringBuilder.

comments

davidebbo wrote Jan 18, 2012 at 6:37 PM

I don't think even the StringBuilder is exposed today, as the only public API is TransformText(), which just returns a string. Or did you mean something different? Please give more details about exactly what you're trying to do.

davidebbo wrote Apr 20, 2012 at 9:55 PM

Potentially, we could support two new overloads:
    public void TransformText(StringBuilder builder) { }
    public void TransformText(TextWriter writer) { }