Package com.github.jknack.handlebars
Interface EscapingStrategy
- All Known Implementing Classes:
EscapingStrategy.Hbs
Deprecated.
com.github.jknack.handlebars package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
A strategy for determining how to escape a variable ({{variable}})..
Usage:
EscapingStrategy escapingStrategy = new EscapingStrategy() {
public String escape(final CharSequence value) {
// return the character sequence escaped however you want
}
};
Handlebars handlebars = new Handlebars().with(escapingStrategy);
- Since:
- 1.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.com.github.jknack.handlebars package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EscapingStrategyDeprecated.Escape variable for CSV.static final EscapingStrategyDeprecated.Default escaping strategy.static final EscapingStrategyDeprecated.LikeHTML_ENTITYbut ignores=.static final EscapingStrategyDeprecated.Default escaping strategy for Handlebars 4.x .static final EscapingStrategyDeprecated.The default HTML Entity escaping strategy.static final EscapingStrategyDeprecated.Escape variable for JavaScript.static final EscapingStrategyDeprecated.NOOP escaping.static final EscapingStrategyDeprecated.Escape variable for XML. -
Method Summary
Modifier and TypeMethodDescriptionescape(CharSequence value) Deprecated.Escape theCharSequence.
-
Field Details
-
HTML_ENTITY
Deprecated.The default HTML Entity escaping strategy. -
HBS3
Deprecated.LikeHTML_ENTITYbut ignores=. -
HBS4
Deprecated.Default escaping strategy for Handlebars 4.x . -
CSV
Deprecated.Escape variable for CSV. -
XML
Deprecated.Escape variable for XML. -
JS
Deprecated.Escape variable for JavaScript. -
NOOP
Deprecated.NOOP escaping. -
DEF
Deprecated.Default escaping strategy.
-
-
Method Details
-
escape
Deprecated.Escape theCharSequence.- Parameters:
value- the character sequence to be escaped.- Returns:
- the escaped character sequence.
-