| Package | Description |
|---|---|
| com.google.template.soy |
Root package with main API entry point and
Guice module.
|
| com.google.template.soy.incrementaldomsrc | |
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.parseinfo.passes | |
| 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.internal | |
| com.google.template.soy.sharedpasses.opti | |
| com.google.template.soy.soytree |
Soy parse tree.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SoyFileSetNode |
SoyFileSetParser.ParseResult.fileSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
IncrementalDomSrcMain.genJsFiles(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyIncrementalDomSrcOptions jsSrcOptions,
String outputPathFormat,
ErrorReporter errorReporter)
Generates Incremental DOM JS source files given a Soy parse tree, an options object, an
optional bundle of translated messages, and information on where to put the output files.
|
List<String> |
IncrementalDomSrcMain.genJsSrc(SoyFileSetNode soyTree,
TemplateRegistry registry,
SoyIncrementalDomSrcOptions options,
ErrorReporter errorReporter)
Generates Incremental DOM JS source code given a Soy parse tree, an options object, and an
optional bundle of translated messages.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
GenJsCodeVisitor.gen(SoyFileSetNode node,
TemplateRegistry registry,
ErrorReporter errorReporter) |
void |
JsSrcMain.genJsFiles(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyJsSrcOptions jsSrcOptions,
String locale,
SoyMsgBundle msgBundle,
String outputPathFormat,
String inputPathsPrefix,
ErrorReporter errorReporter)
Generates JS source files given a Soy parse tree, an options object, an optional bundle of
translated messages, and information on where to put the output files.
|
List<String> |
JsSrcMain.genJsSrc(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyJsSrcOptions jsSrcOptions,
SoyMsgBundle msgBundle,
ErrorReporter errorReporter)
Generates JS source code given a Soy parse tree, an options object, and an optional bundle of
translated messages.
|
protected void |
GenJsCodeVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
GenerateParseInfoVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
| Modifier and Type | Method and Description |
|---|---|
List<TemplateNode> |
ContextualAutoescaper.rewrite(SoyFileSetNode fileSet,
ErrorReporter errorReporter)
Rewrites the given Soy files so that dynamic output is properly escaped according to the
context in which it appears.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<TemplateNode,FindTransitiveDepTemplatesVisitor.TransitiveDepTemplatesInfo> |
FindTransitiveDepTemplatesVisitor.execOnAllTemplates(SoyFileSetNode soyTree)
Computes transitive dep templates info for all templates in a Soy tree.
|
com.google.common.collect.ImmutableMap<TemplateNode,FindIjParamsVisitor.IjParamsInfo> |
FindIjParamsVisitor.execOnAllTemplates(SoyFileSetNode soyTree)
Precomputes injected params info for all templates.
|
void |
AddHtmlCommentsForDebugPass.run(SoyFileSetNode fileSet,
TemplateRegistry registry) |
void |
DesugarHtmlNodesPass.run(SoyFileSetNode fileSet,
TemplateRegistry registry) |
void |
CombineConsecutiveRawTextNodesPass.run(SoyFileSetNode fileSet,
TemplateRegistry registry) |
TemplateRegistry |
PassManager.runWholeFilesetPasses(SoyFileSetNode soyTree)
Runs all the fileset passes including the autoescaper and optimization passes if configured.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PySrcMain.genPyFiles(SoyFileSetNode soyTree,
SoyPySrcOptions pySrcOptions,
String outputPathFormat,
String inputPathsPrefix,
ErrorReporter errorReporter)
Generates Python source files given a Soy parse tree, an options object, and information on
where to put the output files.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SimplifyVisitor.simplify(SoyFileSetNode fileSet,
TemplateRegistry registry)
Simplifies the given file set.
|
| Modifier and Type | Method and Description |
|---|---|
SoyFileSetNode |
SoyFileSetNode.copy(CopyState copyState) |
SoyFileSetNode |
SoyFileNode.getParent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractSoyNodeVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
protected R |
AbstractReturningSoyNodeVisitor.visitSoyFileSetNode(SoyFileSetNode node) |
| Constructor and Description |
|---|
TemplateRegistry(SoyFileSetNode soyTree,
ErrorReporter errorReporter)
Constructor.
|