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

Add missing Javadoc + update README #70

Merged
merged 3 commits into from
Sep 13, 2023

Conversation

xhaggi
Copy link
Contributor

@xhaggi xhaggi commented Sep 12, 2023

No description provided.

@xhaggi xhaggi changed the title Add missing Javadoc + update README.md Add missing Javadoc + update README Sep 12, 2023
README.md Show resolved Hide resolved
README.md Outdated
.addTemplate("users :: list")
.addTemplate("users :: count");
.addTemplate("user-list")
.addTemplate("user-count");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the removal of the :: notation? That is a common usage with partials. (At least in my experience) I recommend keeping them since it can be a hiccup for folks new to Thymeleaf.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because they are Thymeleaf specific and this part of the documentation is no longer Thymeleaf related. It could be confusing for users like me who use another template engine, e.g. FreeMarker.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand your point @xhaggi , but I would like to keep such an example in the docs for those of that do use Thymeleaf so they know a partial fragment can be used there. Not sure if we can somehow combine the examples or just add a 2nd example, indicating that it is Thymeleaf specific?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a new sub-section "Markup Selectors and Out Of Band Swaps" under the "Thymleaf" section explaining this in more detail.

@wimdeblauwe
Copy link
Owner

Looks good to me. Just the merge conflict and the remark about the docs and this can be merged. Thank you for your work!

@wimdeblauwe wimdeblauwe added this to the 3.1.0 milestone Sep 12, 2023
@xhaggi
Copy link
Contributor Author

xhaggi commented Sep 13, 2023

Mind taking another look, especially at the new section "Markup Selectors and Out Of Band Swaps".

* Inform about available annotations
* Explain Thymeleaf Markup Selector usage
* Link to javadoc.io
@wimdeblauwe wimdeblauwe merged commit 8edc311 into wimdeblauwe:main Sep 13, 2023
1 check passed
@xhaggi xhaggi deleted the missing-javadoc branch September 14, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants