Can we write function or method in ThymeLeaf Template to reduce code redundancy?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can we write function or method in ThymeLeaf Template to reduce code redundancy?

shukdebp
Reply | Threaded
Open this post in threaded view
|

Re: Can we write function or method in ThymeLeaf Template to reduce code redundancy?

Zemi
Administrator
In Thymeleaf, the abstraction to reuse code is called "Processor". Please take a look at the documentation for an example
   http://www.thymeleaf.org/sayhelloextendingthymeleaf5minutes.html