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

xilem_html: Add more text views (support numbers directly as view) #154

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

Philipp-M
Copy link
Contributor

I wanted to use numbers as view directly. I don't see why we shouldn't support that, this adds support for that in xilem_html.
(And it reduces a little bit of the string view boilerplate)

Copy link
Contributor

@richard-uk1 richard-uk1 left a comment

Choose a reason for hiding this comment

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

LGTM. We can still format our numbers in different ways if we want by using the output from format(..) rather than the number directly.

@Philipp-M
Copy link
Contributor Author

Yes, that was my thought as well, just a convenience, when the format is correct anyway (e.g. for integers) or it doesn't really matter.

Thanks.

@Philipp-M Philipp-M added this pull request to the merge queue Nov 28, 2023
Merged via the queue into linebender:main with commit f643dc4 Nov 28, 2023
7 checks passed
@Philipp-M Philipp-M deleted the xilem_html-more-text-views branch November 28, 2023 13:39
@Philipp-M Philipp-M restored the xilem_html-more-text-views branch March 13, 2024 22:12
@Philipp-M Philipp-M deleted the xilem_html-more-text-views branch March 13, 2024 22:16
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.

2 participants