Created with IntelliJ IDEA.
A default implementation of TemplateRenderer, which using a print writer writes to
a servlet output.
The implementation will set all required objects if available on renderer, e.g. SoyMsgBundle, IjData (Injected Data)
before rendering to servlet output stream.
Note: in order to support "an early head flush" performance recommendation and
"progressive rendering" a subclass of this class needs to be developed and an implementation
needs to inspect a passed in model object, cast it accordingly and flush to system out, after rendering it.
A default implementation will flush to a servlet output stream once all model objects are resolved and converted to
SoyMapData, an important thing to notice here is that converting from model object to SoyMapData may be expensive
depending on an implementation, i.e. if model objects have been resolved in a controller
or if for instance they were wrapped in a Callable object.
whether debug is on, in case it is on - Soy's Renderer Don't Add To Cache will be turned on, which means
renderer caching will be disabled
logger.warn("compiled templates are not present, nothing to render!");