| 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.api | |
| com.google.template.soy.jbcsrc.restricted | |
| com.google.template.soy.jssrc.restricted | |
| com.google.template.soy.parsepasses.contextautoesc |
A pass that modifies a SoyFile to add escape directives where necessary based on a contextual
examination of template
print commands. |
| com.google.template.soy.passes | |
| com.google.template.soy.pysrc.restricted | |
| com.google.template.soy.shared.restricted | |
| com.google.template.soy.soyparse | |
| com.google.template.soy.soytree |
Soy parse tree.
|
| 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. |
| 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).
|
| Constructor and Description |
|---|
SoySauceImpl(CompiledTemplates templates,
GuiceSimpleScope apiCallScope,
com.google.common.collect.ImmutableMap<String,? extends SoyFunction> functions,
com.google.common.collect.ImmutableMap<String,? extends SoyPrintDirective> printDirectives) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SoyJbcSrcPrintDirective
A specialization of SoyPrintDirective for generating code for directives for the
jbcsrc
backend. |
static interface |
SoyJbcSrcPrintDirective.Streamable
A print directive that supports streaming.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SoyJsSrcPrintDirective
Interface for a Soy print directive implemented for the JS Source backend.
|
interface |
SoyLibraryAssistedJsSrcPrintDirective
Interface for a Soy print directive with more Closure Library requirements than typical Soy
templates, implemented for the JS Source backend.
|
| Constructor and Description |
|---|
ContextualAutoescaper(com.google.common.collect.ImmutableMap<String,? extends SoyPrintDirective> soyDirectivesMap)
This injected ctor provides a blank constructor that is filled, in normal compiler operation,
with the core and basic directives defined in com.google.template.soy.{basic,core}directives,
and any custom directives supplied on the command line.
|
| Modifier and Type | Method and Description |
|---|---|
PassManager.Builder |
PassManager.Builder.setSoyPrintDirectiveMap(com.google.common.collect.ImmutableMap<String,? extends SoyPrintDirective> printDirectives) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SoyPySrcPrintDirective
Interface for a Soy print directive implemented for the Python Source backend.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SoyJavaPrintDirective
Interface for a Soy print directive implemented for Java runtime rendering.
|
| Modifier and Type | Method and Description |
|---|---|
SoyPrintDirective |
PluginResolver.lookupPrintDirective(String name,
int numArgs,
SourceLocation location)
Returns a print directive with the given name and arity.
|
| Constructor and Description |
|---|
PluginResolver(PluginResolver.Mode mode,
com.google.common.collect.ImmutableMap<String,? extends SoyPrintDirective> printDirectives,
com.google.common.collect.ImmutableMap<String,? extends SoyFunction> functions,
ErrorReporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
SoyPrintDirective |
PrintDirectiveNode.getPrintDirective()
Returns the print directive for this node.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<SoyPrintDirective> |
MsgFallbackGroupNode.getEscapingDirectives()
Returns the escaping directives, applied from left to right.
|
com.google.common.collect.ImmutableList<SoyPrintDirective> |
CallNode.getEscapingDirectives()
Returns the escaping directives, applied from left to right.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MsgFallbackGroupNode.setEscapingDirectives(com.google.common.collect.ImmutableList<SoyPrintDirective> escapingDirectiveNames)
Sets the inferred escaping directives from the contextual engine.
|
void |
CallNode.setEscapingDirectives(com.google.common.collect.ImmutableList<SoyPrintDirective> escapingDirectives)
Sets the inferred escaping directives.
|
| Constructor and Description |
|---|
PrintDirectiveNode(int id,
SourceLocation location,
com.google.common.collect.ImmutableList<ExprNode> args,
SoyPrintDirective printDirective,
boolean isSynthetic) |