All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.tschuehly.spring.viewcomponent.thymeleaf.ThymeleafViewComponentDialect.kt Maven / Gradle / Ivy

There is a newer version: 0.8.4
Show newest version
package de.tschuehly.spring.viewcomponent.thymeleaf

import org.springframework.context.ApplicationContext
import org.thymeleaf.dialect.AbstractProcessorDialect
import org.thymeleaf.processor.IProcessor
import org.thymeleaf.standard.StandardDialect

class ThymeleafViewComponentDialect(private val applicationContext: ApplicationContext) : AbstractProcessorDialect(
    "ViewComponent Dialect", "view", StandardDialect.PROCESSOR_PRECEDENCE
) {
    override fun getProcessors(dialectPrefix: String): MutableSet {
        return mutableSetOf(
            ThymeleafViewComponentTagProcessor(dialectPrefix,applicationContext)
        )

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy