public interface IInliner
Interface to be implemented by all inliner implementations.
Inliners are objects in charge of processing logic appearing on textual-oriented nodes
(IText
, ICDATASection
and IComment
), as opposed to on elements.
For example, inlined output expressions ([[${...}]]), javascript inlining artifacts, etc.
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns an identifiable name for the inliner
|
CharSequence |
inline(ITemplateContext context,
ICDATASection cdataSection)
Perform the inlining operation on an
ICDATASection node. |
CharSequence |
inline(ITemplateContext context,
IComment comment)
Perform the inlining operation on an
IComment node. |
CharSequence |
inline(ITemplateContext context,
IText text)
Perform the inlining operation on an
IText node. |
String getName()
Returns an identifiable name for the inliner
CharSequence inline(ITemplateContext context, IText text)
Perform the inlining operation on an IText
node.
context
- the template context.text
- the event to be inlined.CharSequence inline(ITemplateContext context, ICDATASection cdataSection)
Perform the inlining operation on an ICDATASection
node.
context
- the template context.cdataSection
- the event to be inlined.CharSequence inline(ITemplateContext context, IComment comment)
Perform the inlining operation on an IComment
node.
context
- the template context.comment
- the event to be inlined.Copyright © 2016 The THYMELEAF team. All rights reserved.