Class LayoutDialect
- java.lang.Object
-
- org.thymeleaf.dialect.AbstractDialect
-
- org.thymeleaf.dialect.AbstractProcessorDialect
-
- nz.net.ultraq.thymeleaf.layoutdialect.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringDIALECT_NAMEstatic intDIALECT_PRECEDENCEstatic StringDIALECT_PREFIX
-
Constructor Summary
Constructors Constructor Description LayoutDialect()Constructor, configure the layout dialect.LayoutDialect(SortingStrategy sortingStrategy)Constructor, configure the layout dialect.LayoutDialect(SortingStrategy sortingStrategy, boolean autoHeadMerging)Constructor, configure the layout dialect.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<IProcessor>getProcessors(String dialectPrefix)Returns the layout dialect's processors.-
Methods inherited from class org.thymeleaf.dialect.AbstractProcessorDialect
getDialectProcessorPrecedence, getPrefix
-
Methods inherited from class org.thymeleaf.dialect.AbstractDialect
getName
-
-
-
-
Field Detail
-
DIALECT_NAME
public static final String DIALECT_NAME
- See Also:
- Constant Field Values
-
DIALECT_PREFIX
public static final String DIALECT_PREFIX
- See Also:
- Constant Field Values
-
DIALECT_PRECEDENCE
public static final int DIALECT_PRECEDENCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LayoutDialect
public LayoutDialect(SortingStrategy sortingStrategy, boolean autoHeadMerging)
Constructor, configure the layout dialect.- Parameters:
sortingStrategy-autoHeadMerging- Experimental option, set tofalseto 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.
-
-