Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported processors #21

Open
18 of 28 tasks
ultraq opened this issue Apr 20, 2018 · 5 comments
Open
18 of 28 tasks

Supported processors #21

ultraq opened this issue Apr 20, 2018 · 5 comments

Comments

@ultraq
Copy link
Owner

ultraq commented Apr 20, 2018

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
  • th:text
  • th:utext

Control flow processors

  • th:case
  • th:if
  • th:each
  • th:switch
  • th:unless

Fragment processors

  • th:fragment
  • th:insert
  • th:remove
  • th:replace

Local variables

  • th:object
  • th:with

Attribute processors

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

Writable HTML attribute processors

Boolean HTML attribute processors:

Element processors

  • th:block
@rob-bar
Copy link
Contributor

rob-bar commented Mar 19, 2019

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

@ultraq
Copy link
Owner Author

ultraq commented Mar 19, 2019

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
Copy link
Owner Author

ultraq commented Apr 3, 2019

@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.

@rob-bar
Copy link
Contributor

rob-bar commented Apr 3, 2019

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

@Rodemarck
Copy link

forecast to arrive th:switch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants