using custom dialects inline

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

using custom dialects inline

robhues
I'm working with the tutorial: https://www.thymeleaf.org/doc/articles/sayhelloextendingthymeleaf5minutes.html

How do I use this custom dialect inline with text or javascript modes? What is the syntax? I can't seem to find examples of custom dialects with text or javascript.

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: using custom dialects inline

Metroids
I believe you should be able to do this:

<p hello:sayto="World">Hi ya!</p>

with the textual syntax

[# hello:sayto="World"]Hi ya![/]

https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#textual-syntax

if you want a better example, you'll need to post some example thymeleaf html you want converted.