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.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.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.setCssHandlingScheme(SoyGeneralOptions.CssHandlingScheme cssHandlingScheme)
Sets the scheme for handling
css commands. |
SoyFileSet.Builder |
SoyFileSet.Builder.setDeclaredSyntaxVersionName(String versionName)
Sets the user-declared syntax version name for the Soy file bundle.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setLocalTypeRegistry(SoyTypeRegistry typeRegistry)
Override the global type registry with one that is local to this file set.
|
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.
|
SoyFileSet.Builder |
SoyFileSet.Builder.setSupportContentSecurityPolicy(boolean supportContentSecurityPolicy)
Pass true to enable CSP (Content Security Policy) support which adds an extra pass that marks
inline scripts in templates specially so the browser can distinguish scripts written by
trusted template authors from scripts injected via XSS.
|