com.google.template.soy.javasrc
Interface SoyTemplateRuntime


public interface SoyTemplateRuntime

A compiled Soy template.


Method Summary
 String render()
          Applies the template to the given data to produce an output.
 void render(StringBuilder out)
          Applies the template to the given data to append output to the given buffer.
 SoyTemplateRuntime setCssRenamingMap(SoyCssRenamingMap cssRenamingMap)
           
 SoyTemplateRuntime setData(SoyMapData data)
           
 SoyTemplateRuntime setIjData(SoyMapData ijData)
           
 

Method Detail

setData

SoyTemplateRuntime setData(SoyMapData data)
Parameters:
data - The data to pass to the template.
Returns:
this

setIjData

SoyTemplateRuntime setIjData(SoyMapData ijData)
Parameters:
ijData - The injected data for the template.
Returns:
this

setCssRenamingMap

SoyTemplateRuntime setCssRenamingMap(SoyCssRenamingMap cssRenamingMap)
Parameters:
cssRenamingMap - Used to rename the selector text in {css ...} commands.
Returns:
this

render

void render(StringBuilder out)
Applies the template to the given data to append output to the given buffer.

Parameters:
out - A buffer that receives the template output.

render

String render()
Applies the template to the given data to produce an output.

Returns:
The template output.