use of com.enonic.xp.portal.impl.parser.StaticHtml in project xp by enonic.
the class PostProcessEvaluator method processContributions.
private HtmlBlocks processContributions(final HtmlBlocks htmlBlocks) {
final HtmlBlocks.Builder processedHtmlBlocks = HtmlBlocks.builder();
for (HtmlBlock htmlBlock : htmlBlocks) {
if (isTagMarker(htmlBlock)) {
final HtmlTag htmlTag = ((TagMarker) htmlBlock).getTag();
final StaticHtml injectionHtml = evalPostProcessInjection(htmlTag);
if (injectionHtml != null) {
processedHtmlBlocks.add(injectionHtml);
}
} else {
processedHtmlBlocks.add(htmlBlock);
}
}
return processedHtmlBlocks.build();
}
Aggregations