goog.soy
Namespacegoog.soy.InjectedDataSupplier
InterfaceAn interface for a supplier that provides Soy injected data. @interface … more
goog.soy.Renderer
ClassCreates a new soy renderer. Note that the renderer will only be guaranteed to work correctly within the document scope provided in the DOM helper. … more
.renderAsElement(template, opt_templateData, opt_injectedData, opt_domHelper)
Renders a Soy template into a single node. If the rendered HTML string represents a single node, then that node is returned. Otherwise, a DIV element is returned containing the rendered nodes.
template
{Function
}
opt_templateData
{Object
=}
opt_injectedData
{Object
=}
opt_domHelper
{goog.dom.DomHelper
=}
Element
}
.renderAsFragment(template, opt_templateData, opt_injectedData, opt_domHelper)
Renders a Soy template into a single node or a document fragment. If the rendered HTML string represents a single node, then that node is returned (note that this is *not* a fragment, despite them name of the method). Otherwise a document fragment is returned containing the rendered nodes.
template
{Function
}
opt_templateData
{Object
=}
opt_injectedData
{Object
=}
opt_domHelper
{goog.dom.DomHelper
=}
Node
}
.renderElement(element, template, opt_templateData, opt_injectedData)
Renders a Soy template and then set the output string as the innerHTML of an element. It is recommended to use this helper function instead of directly setting innerHTML in your hand-written code, so that it will be easier to audit the code for cross-site scripting vulnerabilities.
element
{Element
}
template
{Function
}
opt_templateData
{Object
=}
opt_injectedData
{Object
=}
.testHelper