| Package | Description |
|---|---|
| com.google.template.soy.conformance | |
| 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. |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.common.collect.ImmutableList<SlicedRawTextNode> |
ConformanceInput.getSlicedRawTextNodes() |
| Modifier and Type | Method and Description |
|---|---|
static ConformanceInput |
ConformanceInput.create(SoyFileSetNode soyTree,
com.google.common.collect.ImmutableList<SlicedRawTextNode> slicedRawTextNodes) |
| Modifier and Type | Field and Description |
|---|---|
SlicedRawTextNode |
SlicedRawTextNode.RawTextSlice.slicedRawTextNode
The text node containing the slice.
|
| Modifier and Type | Method and Description |
|---|---|
SlicedRawTextNode |
SlicedRawTextNode.RawTextSlice.getSlicedRawTextNode() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<SlicedRawTextNode> |
ContextualAutoescaper.getSlicedRawTextNodes()
Maps ranges of text-nodes to contexts so that later parse passes can add attributes or
elements.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ContentSecurityPolicyPass.blessAuthorSpecifiedScripts(Iterable<? extends SlicedRawTextNode> slicedRawTextNodes)
Add attributes to author-specified scripts and styles so that they will continue to run even
though the browser's CSP policy blocks injected scripts and styles.
|
static List<SlicedRawTextNode.RawTextSlice> |
SlicedRawTextNode.find(Iterable<? extends SlicedRawTextNode> slicedTextNodes,
com.google.common.base.Predicate<? super Context> prevContextPredicate,
com.google.common.base.Predicate<? super Context> sliceContextPredicate,
com.google.common.base.Predicate<? super Context> nextContextPredicate)
The slices that occur in the context described by the given predicates.
|