Interface FragmentRenderService


  • public interface FragmentRenderService

    Provides a service to render a Content Fragment to its final destination, typically a paragraph on a CQ page.

    • Method Detail

      • render

        String render​(Resource paragraph)

        Renders the provided resource (which must reference a component that references a Content Fragment).

        Parameters:
        paragraph - The paragraph
        Returns:
        The rendered HTML
      • render

        String render​(Resource paragraph,
                      ValueMap config)

        Renders the provided resource (which must reference a component that references a Content Fragment).

        This method allow to provide additional, implementation-specific configuration. For a documentation about the supported options, please consult the Adobe AEM documentation on Content Fragments.

        Parameters:
        paragraph - The paragraph
        config - Additional configurationls
        Returns:
        The rendered HTML