thymeleafjs icon indicating copy to clipboard operation
thymeleafjs copied to clipboard

Supported processors

Open ultraq opened this issue 6 years ago • 5 comments

A list of all the processors currently supported in the latest version of ThymeleafJS. There's not one list of all processors, but I've done my best to list them all here after scouring the docs: https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html The HTML ones will be simplified as there's a lot of them to write otherwise!

Text processors

  • [ ] th:inline
  • [x] th:text
  • [x] th:utext

Control flow processors

  • [ ] th:case
  • [x] th:if
  • [x] th:each
  • [ ] th:switch
  • [x] th:unless

Fragment processors

  • [x] th:fragment
  • [x] th:insert
  • [x] th:remove
  • [x] th:replace

Local variables

  • [ ] th:object
  • [x] th:with

Attribute processors

  • [x] th:attr
  • [ ] th:attrappend
  • [ ] th:attrprepend
  • [ ] th:alt-title
  • [x] th:classappend
  • [ ] th:xml-lang

Writable HTML attribute processors

  • [x] th:class
  • [x] th:href
  • [x] th:src
  • [x] th:value
  • [ ] (too many others to list! See here for what could be missing: https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#setting-value-to-specific-attributes)

Boolean HTML attribute processors:

  • [x] th:checked
  • [ ] (too many others to list! See here for what could be missing: https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#fixed-value-boolean-attributes)

Element processors

  • [x] th:block

ultraq avatar Apr 20 '18 10:04 ultraq

What about the <th:block></th:block> Is this supported?

rob-bar avatar Mar 19 '19 12:03 rob-bar

Ah, no that one isn't. I'll add it to the list.

I haven't tried porting element processors yet either, so I may need to come up with some way of doing them.

ultraq avatar Mar 19 '19 21:03 ultraq

@rob-bar, I've just pushed some commits that added support for element processors and th:block. You can get it from the latest on master or it'll be in 0.15.0 release once I get the code coverage back up.

ultraq avatar Apr 03 '19 08:04 ultraq

Great! In the meantime I created an adapter for Fractal. You can find it here: https://github.com/rob-bar/thymeleafjs-adapter

rob-bar avatar Apr 03 '19 08:04 rob-bar

forecast to arrive th:switch?

Rodemarck avatar Jan 13 '20 06:01 Rodemarck