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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String render​(Resource paragraph)
      Renders the provided resource (which must reference a component that references a Content Fragment).
      java.lang.String render​(Resource paragraph, ValueMap config)
      Renders the provided resource (which must reference a component that references a Content Fragment).
    • Method Detail

      • render

        java.lang.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

        java.lang.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