| Package | Description |
|---|---|
| com.google.template.soy.basicdirectives |
Plugin package for basic print directives.
|
| com.google.template.soy.coredirectives |
Plugin package for core print directives.
|
| com.google.template.soy.jbcsrc.runtime | |
| com.google.template.soy.jbcsrc.shared | |
| com.google.template.soy.sharedpasses.opti | |
| com.google.template.soy.sharedpasses.render |
| Modifier and Type | Class and Description |
|---|---|
class |
BasicEscapeDirective
An escaping directive that is backed by
Sanitizers in java, soyutils.js or
the closure equivalent in JavaScript, and sanitize.py in Python. |
class |
InsertWordBreaksDirective
A directive that inserts word breaks as necessary.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EscapeHtmlDirective
A directive that HTML-escapes the output.
|
class |
IdDirective
A directive that marks an identifier such as an HTML id or CSS class name.
|
class |
NoAutoescapeDirective
A directive that turns off autoescape for this 'print' tag (if it's on for the template).
|
| Modifier and Type | Method and Description |
|---|---|
static SoyValue |
Runtime.applyPrintDirective(SoyJavaPrintDirective directive,
SoyValue value,
List<SoyValue> args)
Helper function to translate null -> NullData when calling SoyJavaPrintDirectives that may
expect it.
|
| Modifier and Type | Method and Description |
|---|---|
static CompiledTemplate |
Runtime.applyEscapers(CompiledTemplate delegate,
SanitizedContent.ContentKind kind,
List<SoyJavaPrintDirective> directives)
Wraps a given template with a collection of escapers to apply.
|
static CompiledTemplate |
Runtime.applyEscapersDynamic(CompiledTemplate delegate,
List<SoyJavaPrintDirective> directives)
Wraps a given template with a collection of escapers to apply.
|
| Modifier and Type | Method and Description |
|---|---|
SoyJavaPrintDirective |
RenderContext.getPrintDirective(String name) |
| Modifier and Type | Method and Description |
|---|---|
RenderContext.Builder |
RenderContext.Builder.withSoyPrintDirectives(Map<String,? extends SoyJavaPrintDirective> directives) |
| Constructor and Description |
|---|
PrerenderVisitorFactory(com.google.common.collect.ImmutableMap<String,? extends SoyJavaPrintDirective> soyJavaDirectivesMap,
PreevalVisitorFactory preevalVisitorFactory) |
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableMap<String,? extends SoyJavaPrintDirective> |
RenderVisitor.soyJavaDirectivesMap
Map of all SoyJavaPrintDirectives (name to directive).
|
| Constructor and Description |
|---|
RenderVisitor(com.google.common.collect.ImmutableMap<String,? extends SoyJavaPrintDirective> soyJavaDirectivesMap,
EvalVisitor.EvalVisitorFactory evalVisitorFactory,
Appendable outputBuf,
TemplateRegistry templateRegistry,
SoyRecord data,
SoyRecord ijData,
com.google.common.base.Predicate<String> activeDelPackageSelector,
SoyMsgBundle msgBundle,
SoyIdRenamingMap xidRenamingMap,
SoyCssRenamingMap cssRenamingMap) |
RenderVisitorFactory(com.google.common.collect.ImmutableMap<String,? extends SoyJavaPrintDirective> soyJavaDirectivesMap,
EvalVisitor.EvalVisitorFactory evalVisitorFactory) |