| Package | Description |
|---|---|
| com.google.template.soy |
Root package with main API entry point and
Guice module.
|
| com.google.template.soy.base.internal | |
| com.google.template.soy.error | |
| com.google.template.soy.incrementaldomsrc | |
| com.google.template.soy.jssrc.internal | |
| 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.pysrc.internal | |
| com.google.template.soy.soytree |
Soy parse tree.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SoyToPySrcCompiler.main(String[] args)
Compiles a set of Soy files into corresponding Python source files.
|
static void |
SoyToJsSrcCompiler.main(String[] args)
Compiles a set of Soy files into corresponding JS source files.
|
static void |
SoyToIncrementalDomSrcCompiler.main(String[] args)
Compiles a set of Soy files into corresponding Incremental DOM source files.
|
static void |
SoyMsgPruner.main(String[] args)
Prunes messages from XTB files, given a set of Soy files as reference for which messages to
keep.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LegacyInternalSyntaxException
A SoySyntaxException that is meant for internal use in Soy.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SoyCompilationException
Reports on all Soy compilation errors and allows for programmatic inspection via
SoyCompilationException.getErrors(). |
| Modifier and Type | Method and Description |
|---|---|
void |
IncrementalDomSrcMain.genJsFiles(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyJsSrcOptions 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,
SoyJsSrcOptions jsSrcOptions,
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 |
|---|---|
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SoyAutoescapeException
Indicates failure to propagate contexts through a template or an existing escaping directive on a
'print' tag that is inconsistent with the contexts in which it appears.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PySrcMain.genPyFiles(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
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.
|
List<String> |
PySrcMain.genPySrc(SoyFileSetNode soyTree,
TemplateRegistry templateRegistry,
SoyPySrcOptions pySrcOptions,
com.google.common.collect.ImmutableMap<String,String> currentManifest,
ErrorReporter errorReporter)
Generates Python source code given a Soy parse tree and an options object.
|
| Constructor and Description |
|---|
CaseOrDefaultNode(int id,
SourceLocation sourceLocation,
String commandName,
String commandText) |