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

Support int as attributes and children #52

Merged
merged 3 commits into from
Aug 28, 2024
Merged

Support int as attributes and children #52

merged 3 commits into from
Aug 28, 2024

Conversation

Majsvaffla
Copy link
Contributor

I think it would be nice if htpy supported int both as attribute value and as children. Since it's a builtin type it seems reasonable. You could argue that float and datetime should be supported too. The difference is however that it isn't obvious how to output/format those types. They heavily depend on locale for one thing.

The line between what types htpy should support and not has to be drawn somewhere but I think int doesn't cross that line 😄

@Majsvaffla Majsvaffla force-pushed the int branch 2 times, most recently from 24169c6 to 7d541d3 Compare August 28, 2024 08:51
@pelme pelme merged commit 3b2ebd0 into pelme:main Aug 28, 2024
13 checks passed
pelme added a commit that referenced this pull request Aug 28, 2024
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