Interface ViewMacroWrapper

All Known Implementing Classes:
DefaultViewMacroWrapper

public interface ViewMacroWrapper
Wrapper Macro into div element if fragment contains more than 1 level xml elements otherwise update class and add attributes to root element.
  • Method Details

    • wrap

      String wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition)
      Execute macro wrapping. Example: Status and

      Info macro

      Parameters:
      context - the conversion context
      outputType - output type
      macroBody - rendered macro body
      macroDefinition - definition of macro
      Returns:
      macro has wrapped otherwise the original