Search in sources :

Example 1 with DataAttributeDialect

use of com.github.mxab.thymeleaf.extras.dataattribute.dialect.DataAttributeDialect in project irida by phac-nml.

the class IridaUIWebConfig method additionalDialects.

/**
 * This is to add additional Thymeleaf dialects.
 *
 * @return A Set of Thymeleaf dialects.
 */
private Set<IDialect> additionalDialects() {
    Set<IDialect> dialects = new HashSet<>();
    dialects.add(new SpringSecurityDialect());
    dialects.add(new LayoutDialect());
    dialects.add(new DataAttributeDialect());
    return dialects;
}
Also used : DataAttributeDialect(com.github.mxab.thymeleaf.extras.dataattribute.dialect.DataAttributeDialect) SpringSecurityDialect(org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect) IDialect(org.thymeleaf.dialect.IDialect) HashSet(java.util.HashSet) LayoutDialect(nz.net.ultraq.thymeleaf.LayoutDialect)

Aggregations

DataAttributeDialect (com.github.mxab.thymeleaf.extras.dataattribute.dialect.DataAttributeDialect)1 HashSet (java.util.HashSet)1 LayoutDialect (nz.net.ultraq.thymeleaf.LayoutDialect)1 IDialect (org.thymeleaf.dialect.IDialect)1 SpringSecurityDialect (org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect)1