| 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.jbcsrc | |
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.parseinfo.passes | |
| com.google.template.soy.passes | |
| com.google.template.soy.sharedpasses.opti | |
| com.google.template.soy.sharedpasses.render | |
| com.google.template.soy.tofu.internal |
| Modifier and Type | Method and Description |
|---|---|
abstract TemplateRegistry |
SoyFileSetParser.ParseResult.registry() |
| 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 |
|---|---|
static com.google.common.base.Optional<CompiledTemplates> |
BytecodeCompiler.compile(TemplateRegistry registry,
boolean developmentMode,
ErrorReporter reporter)
Compiles all the templates in the given registry.
|
static void |
BytecodeCompiler.compileToJar(TemplateRegistry registry,
ErrorReporter reporter,
com.google.common.io.ByteSink sink)
Compiles all the templates in the given registry to a jar file written to the given output
stream.
|
static void |
BytecodeCompiler.writeSrcJar(TemplateRegistry registry,
com.google.common.collect.ImmutableMap<String,SoyFileSupplier> files,
com.google.common.io.ByteSink sink)
Writes the source files out to a
-src.jar. |
| Modifier and Type | Field and Description |
|---|---|
protected TemplateRegistry |
GenJsCodeVisitor.templateRegistry |
| 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.
|
| Constructor and Description |
|---|
GenerateParseInfoVisitor(String javaPackage,
String javaClassNameSource,
TemplateRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
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 |
AddHtmlCommentsForDebugPass.run(SoyFileSetNode fileSet,
TemplateRegistry registry) |
void |
DesugarHtmlNodesPass.run(SoyFileSetNode fileSet,
TemplateRegistry registry) |
void |
CombineConsecutiveRawTextNodesPass.run(SoyFileSetNode fileSet,
TemplateRegistry registry) |
| Constructor and Description |
|---|
FindIjParamsVisitor(TemplateRegistry templateRegistry) |
FindIndirectParamsVisitor(TemplateRegistry templateRegistry) |
FindTransitiveDepTemplatesVisitor(TemplateRegistry templateRegistry) |
StrictDepsVisitor(TemplateRegistry templateRegistry,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
SimplifyVisitor.simplify(SoyFileSetNode fileSet,
TemplateRegistry registry)
Simplifies the given file set.
|
| Modifier and Type | Field and Description |
|---|---|
protected TemplateRegistry |
RenderVisitor.templateRegistry
The bundle containing all the templates that may be rendered.
|
| Constructor and Description |
|---|
RenderVisitor(EvalVisitor.EvalVisitorFactory evalVisitorFactory,
Appendable outputBuf,
TemplateRegistry templateRegistry,
SoyRecord data,
SoyRecord ijData,
com.google.common.base.Predicate<String> activeDelPackageSelector,
SoyMsgBundle msgBundle,
SoyIdRenamingMap xidRenamingMap,
SoyCssRenamingMap cssRenamingMap,
boolean debugSoyTemplateInfo) |
| Constructor and Description |
|---|
BaseTofu(GuiceSimpleScope apiCallScope,
TemplateRegistry templates,
com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSortedSet<String>> templateToIjParamsInfoMap) |