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
Support for Thymeleaf 3.0 #68
Comments
In-flight "docs" for the new dialect API: thymeleaf/thymeleaf#401 |
Is there an ETA for layout dialect to work with thymeleaf 3.0 ? I would like to try thymeleaf 3 alpha with layout dialect. |
I'm actually waiting for a beta version to start dev work - the API just kept changing during the alpha! That should be soon now though if talk on the Thymeleaf GitHub is anything to go by (eg: thymeleaf/thymeleaf#380 (comment)) |
All right thank you for your quick response :) |
Hi there, Thanks! |
It'll still be a while - I only just created a new code branch for 3.0 development and updated the build to download the 3.0 beta. |
Hello. Any news about support 3.0Beta1? |
Hello @ultraq ! Looking foward to your dialect support for 3.0 beta! |
+1 |
Are there any news on the update progress ? |
Hey peeps, still nothing. I've only managed to update my other dialects to have snapshots with the 3.0 beta as an exercise to become more familiar with how Thymeleaf 3.0 does things. The architecture is quite different, and a lot of what I did in Thymeleaf 2.x I can't do here, so I'm having to come up with new ways of doing things. |
For future reference, any progress (or lack thereof), can be found in the thymeleaf-3.0 branch of this project. |
hi @ultraq thanks for dev branch but maven can't resolve 2.0.0-SNAPSHOT version. Do you have any plan on releasing new version? |
I am working in the integration with spring-boot spring-projects/spring-boot#4393 and we will need it. |
Any update? If you need a hand with functional testing, I'd be happy to help. |
+1 |
First Basically, only XML document decoration which doesn't include having to copy directives (eg: DOCTYPEs or comments) outside of the root elements, eg: this test file: https://github.com/ultraq/thymeleaf-layout-dialect/blob/thymeleaf-3.0/Tests/nz/net/ultraq/thymeleaf/tests/decorators/xml/Document-XmlDecoration.thtest |
+1 |
+1 |
Just an FYI to anybody watching: the latest |
+1 |
Hi, |
@robvanderboom, you can follow the instructions in this section here to enable access to the snapshot repositories: http://www.thymeleaf.org/faq.html#use-snapshot |
Thanks a lot, yes this is ok now. If i place 2col_wide_left one level up and define it as "2col_wide_left" it goes ok. org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "layout/2col_wide_left" (template: "page/login" - line 2, col 11) |
@robvanderboom I also stumbled over this exception. It seems that from Thymeleaf 3 you have to put literals between single quotes, otherwise it is treated as an expression. So try |
@robvanderboom, @tobiasflohre's suggestion seems legit, but this speaks to me of maybe some undesired behaviour from the expression engine if it suddenly can't interpret fragment paths with a Also, with the 2.0.0-SNAPSHOT versions, I've tried interpreting the value that goes into |
The additional single quote helps for layout:decorator, but seems have to do this also for attributes like data:addurl="@{/add-interest}". Try to do all and see whats happining. But seems indeed that the expression engine is doing something strange and this isn't the final solution... Keep you updated... |
don't know were to start with this issue. It seems there is something new in Thymeleaf three that wants to see everything as an expression :-> |
That last bit about the |
@ultraq I'm checking the Snapshot implementation currently, and I found out that the template which is used to decorate (surround) our main template is loaded four times:
Do you think that's necessary? Couldn't you clone the one loaded the first time? We have remote access for the template, so we have a little performance issue with that. |
Hi @tobiasflohre, could you please raise a separate issue for that? I'm starting to think this one might get swamped if we try to track everything in the snapshot against it. |
Yes, that's better. Here it is: #108 |
My upgrade to 3.0 does go without issues, one is solved now in the thymeleaf attribute extra lib (version 2.0.1). Now in my current project the contents disappears because of the layout:decorator. Below a part of the code that is working in version thymeleaf 2 ? Tried a lot of thinks but content is always empty with the decorator... PS: even when the template 2col_wide_left is empty (or whatever is placed in it), the head-content is not showing up anymore, and without it it is ....
|
And as addon to above: is this the right place for my problem or should i crreate a new issue for this ? In my opinion it is a Or a bug Or a missing migration step in the "3 minutes guides". This sinces the migration guides steps are all followed and it is working in thymeleaf 2 (this construction is used througout the production website). So if it is not a bug of the layout dialect lib, it should explain why this part is not working anymore after migration (so what do i have to change ??) in the migration part. |
Hi @robvanderboom, I was just about to ask that you open another issue for this, so please do 😃 |
when this new-release-for-thymeleaf-3 will be released ? |
It would be nice to have this in spring-boot 1.4 (which is scheduled to come some time around 20th of June). And I know for sure the spring-boot team is depending on this layout dialect. |
The 2.0 snapshot now has feature parity with the latest of the 1.x branch! 😀 There's still a bit of work to be done, namely: a few edge case tests that I've accumulated during the 1.x lifetime (some devs using the layout dialect in ways I never thought of!), bugs/regressions that people have brought forward during their testing of the 2.0 snapshots, and a decent amount of documentation to update. Some of these are associated with the 2.0 milestone, so anybody curious about those can check the milestone. Almost there! |
Thymeleaf 3.0, currently under heavy development, will change the API for dialects. I'd also like to get the layout dialect ready for Thymeleaf 3.0 to help with the beta cycle I imagine it will go through (I think some will want to test the new Thymeleaf alongside this dialect - I know I will).
Thymeleaf 3.0 is now approaching a 3.0 release. I've been doing a lot to update the layout dialect, but I'm finding some difficulty wrapping my head around the new architecture. To help myself out, I'm approaching the problem a feature at a time (and racking-up TODOs along the way) as per the checklist below. It should also give some kind of transparency of my progress.
Features with a date to the right of them indicate that they are part of a
2.0.0-SNAPSHOT
version uploaded on that day.layout:decorator
) 16 MayDOCTYPE
merging 22 June<head>
element decoration 16 May<title>
replacement (use child title over parent title) 20 May<title>
pattern processing (layout:title-pattern
) 18 June<body>
element decoration 15 Maylayout:decorator
) 7 Mayth:with
) 7 Maylayout:include
30 Maylayout:replace
31 Maylayout:insert
(new in Thymeleaf 3.0) 4 JuneThis work is also part of the Layout Dialect 2.0 milestone that includes a lot of other issues that I want to do for this next release.
2.0.0-SNAPSHOT
s will be uploaded at least as often as whenever one of the attribute processors is complete. This should let developers who may only use that feature test what is currently there.Feature completion list last updated 22 June 2016
The text was updated successfully, but these errors were encountered: