| 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.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.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,
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 |
|---|---|
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 |
|---|---|
List<TemplateNode> |
ContextualAutoescaper.rewrite(SoyFileSetNode fileSet,
TemplateRegistry registry,
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 |
|---|---|
void |
PassManager.runWholeFilesetPasses(TemplateRegistry registry,
SoyFileSetNode soyTree) |
| Constructor and Description |
|---|
FindIjParamsVisitor(TemplateRegistry templateRegistry) |
FindIndirectParamsVisitor(TemplateRegistry templateRegistry) |
FindTransitiveDepTemplatesVisitor(TemplateRegistry templateRegistry) |
StrictDepsVisitor(TemplateRegistry templateRegistry,
ErrorReporter errorReporter) |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.template.soy.sharedpasses.opti.PrerenderVisitor |
PrerenderVisitorFactory.create(Appendable outputBuf,
TemplateRegistry templateRegistry)
Creates a PrerenderVisitor.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
RenderVisitor |
RenderVisitorFactory.create(Appendable outputBuf,
TemplateRegistry templateRegistry,
SoyRecord data,
SoyRecord ijData,
com.google.common.base.Predicate<String> activeDelPackageSelector,
SoyMsgBundle msgBundle,
SoyIdRenamingMap xidRenamingMap,
SoyCssRenamingMap cssRenamingMap)
Creates a RenderVisitor.
|
| 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) |
| Modifier and Type | Method and Description |
|---|---|
BaseTofu |
BaseTofu.BaseTofuFactory.create(TemplateRegistry templates,
com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSortedSet<String>> templateToIjParamsInfoMap,
com.google.common.collect.ImmutableMap<String,? extends SoyPrintDirective> printDirectives) |
| Constructor and Description |
|---|
BaseTofu(SoyValueHelper valueHelper,
GuiceSimpleScope apiCallScope,
com.google.template.soy.tofu.internal.TofuRenderVisitorFactory tofuRenderVisitorFactory,
TemplateRegistry templates,
com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSortedSet<String>> templateToIjParamsInfoMap,
com.google.common.collect.ImmutableMap<String,? extends SoyPrintDirective> printDirectives) |