ultraq / thymeleafjs

A basic implementation of the Thymeleaf templating engine in JavaScript
Apache License 2.0
52 stars 8 forks source link

Supported processors #21

Open ultraq opened 6 years ago

ultraq commented 6 years ago

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

Control flow processors

Fragment processors

Local variables

Attribute processors

Writable HTML attribute processors

Boolean HTML attribute processors:

Element processors

rob-bar commented 5 years ago

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

ultraq commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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

Rodemarck commented 4 years ago

forecast to arrive th:switch?