RC-Paves3-build / plovr

Automatically exported from code.google.com/p/plovr
0 stars 0 forks source link

Make SOY code style configurable #67

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There is no configuration option for soy code style, soy code generation is 
hardwired to concat style. For my project I need stringbuffer. I found a TODO 
in the latest source code for this feature and because I needed it really fast, 
I put together a patch.

Original issue reported on code.google.com by zs...@meszarovics.name on 18 Jun 2012 at 9:29

Attachments:

GoogleCodeExporter commented 8 years ago
Out of curiosity, why do you need StringBuffer? On most modern browsers, last I 
checked, I thought StringBuffer was a performance loss.

Original comment by bolinf...@gmail.com on 18 Jul 2012 at 5:51

GoogleCodeExporter commented 8 years ago
Yes, that's right, my requirements are quite unusual. I needed the ability to 
stream templates at the server side, so instead of a traditional StringBuffer I 
provide an output stream wrapper for templates, which writes to the (buffered) 
output stream at .append(), does nothing for .toString().

Original comment by zs...@meszarovics.name on 18 Jul 2012 at 8:20