Class LayoutDialect

  • All Implemented Interfaces:
    IDialect, IProcessorDialect

    public class LayoutDialect
    extends AbstractProcessorDialect
    A dialect for Thymeleaf that lets you build layouts and reusable templates in order to improve code reuse
    Author:
    zhanhb, Emanuel Rabina
    • Constructor Detail

      • LayoutDialect

        public LayoutDialect​(SortingStrategy sortingStrategy,
                             boolean autoHeadMerging)
        Constructor, configure the layout dialect.
        Parameters:
        sortingStrategy -
        autoHeadMerging - Experimental option, set to false to skip the automatic merging of an HTML <head> section.
      • LayoutDialect

        public LayoutDialect​(SortingStrategy sortingStrategy)
        Constructor, configure the layout dialect.
        Parameters:
        sortingStrategy -
      • LayoutDialect

        public LayoutDialect()
        Constructor, configure the layout dialect.
    • Method Detail

      • getProcessors

        public Set<IProcessor> getProcessors​(String dialectPrefix)
        Returns the layout dialect's processors.
        Parameters:
        dialectPrefix -
        Returns:
        All of the processors for HTML and XML template modes.