Custom dialect in 3.0

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

Custom dialect in 3.0

Jaffa
In version 2 I used a custom dialect to perform custom formatting. I did this by extending AbstractDialect and AbstractTextChildModifierAttrProcessor. How can this be done in 3.0? E.g. to make this:

[span my:text="Hello"][/span]

render as:

[span]Hello world![/span]
Reply | Threaded
Open this post in threaded view
|

Re: Custom dialect in 3.0

Zemi
Administrator
Hello,

there is no specific article about making a Thymeleaf 3 dialect yet, but you can take a look at
   http://www.thymeleaf.org/doc/articles/thymeleaf3migration.html#new-dialect-system
and at one of the existing dialects migrated to Thymeleaf 3, such as
   https://github.com/thymeleaf/thymeleaf-extras-springsecurity

Regards,
  Zemi

Reply | Threaded
Open this post in threaded view
|

Re: Custom dialect in 3.0

Jaffa
Thanks. The Spring Security dialect was helpful as an example.