public interface TofuCompiler
| Modifier and Type | Method and Description |
|---|---|
com.google.template.soy.tofu.SoyTofu |
compile(java.util.Collection<java.net.URL> files)
Obtains a binary compiled version based on a set of input urls
|
java.util.Collection<java.lang.String> |
compileToJsSrc(java.util.Collection<java.net.URL> templates,
com.google.template.soy.msgs.SoyMsgBundle soyMsgBundle)
Obtains a compiled template to JavaScript as a String based on a collection of template urls
|
com.google.common.base.Optional<java.lang.String> |
compileToJsSrc(java.net.URL template,
com.google.template.soy.msgs.SoyMsgBundle soyMsgBundle)
Obtains a compiled template to JavaScript as a String based on a template url
|
com.google.template.soy.tofu.SoyTofu compile(java.util.Collection<java.net.URL> files)
throws java.io.IOException
files - java.io.IOExceptioncom.google.common.base.Optional<java.lang.String> compileToJsSrc(java.net.URL template,
@Nullable
com.google.template.soy.msgs.SoyMsgBundle soyMsgBundle)
template - soyMsgBundle - java.util.Collection<java.lang.String> compileToJsSrc(java.util.Collection<java.net.URL> templates,
@Nullable
com.google.template.soy.msgs.SoyMsgBundle soyMsgBundle)
templates - - a collection of template urlssoyMsgBundle -