| Package | Description |
|---|---|
| com.google.template.soy.coredirectives |
Plugin package for core print directives.
|
| com.google.template.soy.data |
Java representation of Soy data types.
|
| com.google.template.soy.jbcsrc.api | |
| com.google.template.soy.jbcsrc.restricted | |
| com.google.template.soy.jbcsrc.runtime | |
| com.google.template.soy.jbcsrc.shared | |
| com.google.template.soy.jssrc.restricted | |
| com.google.template.soy.pysrc.restricted | |
| com.google.template.soy.shared.internal |
Internal shared class among multiple backends.
|
| com.google.template.soy.tofu |
Java Object backend (a.k.a. Tofu).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
EscapeHtmlDirective.isNoopForKind(SanitizedContent.ContentKind kind) |
| Modifier and Type | Method and Description |
|---|---|
SanitizedContent.ContentKind |
SanitizedContentOperator.getContentKind()
The kind of content consumed and produced.
|
SanitizedContent.ContentKind |
SanitizedContent.getContentKind()
Returns the kind of content.
|
SanitizedContent.ContentKind |
LoggingAdvisingAppendable.getSantizedContentKind()
Returns the content kind of this appendable.
|
static SanitizedContent.ContentKind |
SanitizedContent.ContentKind.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SanitizedContent.ContentKind[] |
SanitizedContent.ContentKind.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static SanitizedContent |
SanitizedContents.emptyString(SanitizedContent.ContentKind kind)
Creates an empty string constant.
|
static SanitizedContent |
LazySanitizedContents.forThunk(RenderableThunk value,
SanitizedContent.ContentKind kind)
Creates a SanitizedContent that wraps the given thunk.
|
static SanitizedContent |
SanitizedContents.fromResource(Class<?> contextClass,
String resourceName,
Charset charset,
SanitizedContent.ContentKind kind)
Loads assumed-safe content from a Java resource.
|
static SanitizedContent |
SanitizedContents.fromResource(String resourceName,
Charset charset,
SanitizedContent.ContentKind kind)
Loads assumed-safe content from a Java resource.
|
protected void |
ForwardingLoggingAdvisingAppendable.notifyContentKind(SanitizedContent.ContentKind kind) |
protected void |
LoggingAdvisingAppendable.notifyContentKind(SanitizedContent.ContentKind kind)
Called when the content kind is initially set.
|
protected void |
LoggingAdvisingAppendable.BufferingAppendable.notifyContentKind(SanitizedContent.ContentKind kind) |
static SanitizedContent |
UnsafeSanitizedContentOrdainer.ordainAsSafe(String value,
SanitizedContent.ContentKind kind)
Faithfully assumes the provided value is "safe" and marks it not to be re-escaped.
|
static SanitizedContent |
UnsafeSanitizedContentOrdainer.ordainAsSafe(String value,
SanitizedContent.ContentKind kind,
Dir dir)
Faithfully assumes the provided value is "safe" and marks it not to be re-escaped.
|
LoggingAdvisingAppendable |
LoggingAdvisingAppendable.setSanitizedContentKind(SanitizedContent.ContentKind kind)
Marks the content kind of this appendable.
|
| Modifier and Type | Method and Description |
|---|---|
SoySauce.Renderer |
SoySauce.Renderer.setExpectedContentKind(SanitizedContent.ContentKind kind)
Sets the expected content kind.
|
| Modifier and Type | Method and Description |
|---|---|
static Expression |
BytecodeUtils.constant(SanitizedContent.ContentKind kind)
Returns an
Expression that evaluates to the given ContentKind, or null. |
| Constructor and Description |
|---|
DetachableContentProvider(SanitizedContent.ContentKind contentKind) |
| Modifier and Type | Method and Description |
|---|---|
SanitizedContent.ContentKind |
CompiledTemplate.kind()
The content kind of the compiled template, used for making runtime content escaping decisions.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<SanitizedContent.ContentKind> |
CompiledTemplates.getTemplateContentKind(String name)
Returns the strict content type of the template.
|
| Modifier and Type | Method and Description |
|---|---|
static JsExpr |
JsExprUtils.maybeWrapAsSanitizedContent(SanitizedContent.ContentKind contentKind,
JsExpr jsExpr)
Deprecated.
This method is not safe to use without a security review, please migrate away from
it.
|
| Modifier and Type | Method and Description |
|---|---|
static PyExpr |
PyExprUtils.wrapAsSanitizedContent(SanitizedContent.ContentKind contentKind,
PyExpr pyExpr)
Deprecated.
this method is not safe to use without a security review. Do not use it.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ShortCircuitable.isNoopForKind(SanitizedContent.ContentKind kind)
Returns true if this directive will turn into a no-op when passed values of the given content
kind.
|
protected abstract void |
AbstractStreamingHtmlEscaper.notifyContentKind(SanitizedContent.ContentKind kind)
Override this to set the appendable for the
append methods to delegate to, based on the
content kind. |
| Modifier and Type | Method and Description |
|---|---|
SanitizedContent.ContentKind |
SoyTofu.Renderer.render(Appendable out)
Renders the template using the data, injected data, and message bundle previously set into
the given Appendable.
|
| Modifier and Type | Method and Description |
|---|---|
SoyTofu.Renderer |
SoyTofu.Renderer.setContentKind(SanitizedContent.ContentKind contentKind)
Sets the expected content kind.
|