| Package | Description |
|---|---|
| com.google.template.soy |
Root package with main API entry point and
Guice module.
|
| Modifier and Type | Method and Description |
|---|---|
SoyFileSet.Builder |
SoyFileSet.Builder.add(CharSequence content,
String filePath)
Adds an input Soy file, given the file content provided as a string, as well as the desired
file path for messages.
|
SoyFileSet.Builder |
SoyFileSet.Builder.add(com.google.common.io.CharSource contentSource,
String filePath)
Adds an input Soy file, given a
CharSource for the file content, as well as the
desired file path for messages. |
SoyFileSet.Builder |
SoyFileSet.Builder.add(File inputFile)
Adds an input Soy file, given a
File. |
SoyFileSet.Builder |
SoyFileSet.Builder.add(URL inputFileUrl)
Adds an input Soy file, given a resource
URL. |
SoyFileSet.Builder |
SoyFileSet.Builder.add(URL inputFileUrl,
String filePath)
Adds an input Soy file, given a resource
URL, as well as the desired file path for
messages. |
SoyFileSet.Builder |
SoyFileSet.Builder.addProtoDescriptors(com.google.protobuf.Descriptors.GenericDescriptor... descriptors)
Registers a collection of protocol buffer descriptors.
|
SoyFileSet.Builder |
SoyFileSet.Builder.addProtoDescriptors(Iterable<? extends com.google.protobuf.Descriptors.GenericDescriptor> descriptors)
Registers a collection of protocol buffer descriptors.
|
SoyFileSet.Builder |
SoyFileSet.Builder.addProtoDescriptorsFromFile(File descriptorFile)
Add all proto descriptors found in the file to the type registry.
|
SoyFileSet.Builder |
SoyFileSet.Builder.addVolatile(File inputFile)
Adds an input Soy file that supports checking for modifications, given a
File. |
SoyFileSet.Builder |
SoyFileSet.Builder.addVolatileWithKind(File inputFile,
SoyFileKind soyFileKind)
Adds an input Soy file that supports checking for modifications, given a
File. |
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(CharSequence content,
SoyFileKind soyFileKind,
String filePath)
Adds an input Soy file, given the file content provided as a string, as well as the desired
file path for messages.
|
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(com.google.common.io.CharSource contentSource,
SoyFileKind soyFileKind,
String filePath)
Adds an input Soy file, given a
CharSource for the file content, as well as the
desired file path for messages. |
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(File inputFile,
SoyFileKind soyFileKind)
Adds an input Soy file, given a
File. |
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(URL inputFileUrl,
SoyFileKind soyFileKind)
Adds an input Soy file, given a resource
URL. |
SoyFileSet.Builder |
SoyFileSet.Builder.addWithKind(URL inputFileUrl,
SoyFileKind soyFileKind,
String filePath)
Adds an input Soy file, given a resource
URL, as well as the desired file path for
messages. |
static SoyFileSet.Builder |
SoyFileSet.builder()
Creates a builder with the standard set of Soy directives, functions, and types.
|
SoyFileSet.Builder |
SoyFileSet.Builder.disableOptimizer()
Disables optimizer.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setAllowExternalCalls(boolean allowExternalCalls)
Sets whether to allow external calls (calls to undefined templates).
|
SoyFileSet.Builder |
SoyFileSet.Builder.setCompileTimeGlobals(File compileTimeGlobalsFile)
Sets the file containing compile-time globals.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setCompileTimeGlobals(Map<String,?> compileTimeGlobalsMap)
Sets the map from compile-time global name to value.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setCompileTimeGlobals(URL compileTimeGlobalsResource)
Sets the resource file containing compile-time globals.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setDeclaredSyntaxVersionName(String versionName)
Sets the user-declared syntax version name for the Soy file bundle.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setExperimentalFeatures(List<String> experimentalFeatures)
Sets experimental features.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setLoggingConfig(LoggingConfig config)
Sets the logging config to use.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setSoyAstCache(SoyAstCache cache)
Configures to use an AST cache to speed up development time.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setStrictAutoescapingRequired(boolean strictAutoescapingRequired)
Sets whether to force strict autoescaping.
|