public interface TextMapper
TextMapper is an optional service that allows to map
or replace text output.
This service can be used to rewrite markers placed into the HTML, CSS
or Javascript output by some CQ template or components.| Modifier and Type | Interface and Description |
|---|---|
static class |
TextMapper.ResourceType |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
rewrite(InvocationContext context,
java.lang.String completeText,
java.lang.String resourcePath,
TextMapper.ResourceType type)
Rewrite the complete character output.
|
java.lang.String rewrite(InvocationContext context, java.lang.String completeText, java.lang.String resourcePath, TextMapper.ResourceType type)
context - The current invocation context.completeText - The current characters.resourcePath - The path to the resource.type - The resource type