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

Write macros around url_for* #36

Open
AMDmi3 opened this issue Oct 12, 2024 · 0 comments
Open

Write macros around url_for* #36

AMDmi3 opened this issue Oct 12, 2024 · 0 comments
Labels
Component: webapp repology-webapp, repology web application Effort: intermediate A class or a huge function needs to be written Priority: soon Should be done in a few days Type: infrastructure Internal development of base required for other features

Comments

@AMDmi3
Copy link
Member

AMDmi3 commented Oct 12, 2024

Writing url_for argument as array of tuples is extremely clumsy, also it doesn't allow to pass anything which is not a string literal. Add macros with cleaner syntax which allows

  • foo = "bar" params without extra parentheses
  • foo = bar syntax with automatic stringification
  • endpoint name without crate::endpoints::Endpoint:: qualification
@AMDmi3 AMDmi3 added Component: webapp repology-webapp, repology web application Effort: intermediate A class or a huge function needs to be written Priority: soon Should be done in a few days Type: infrastructure Internal development of base required for other features labels Oct 12, 2024
@AMDmi3 AMDmi3 changed the title Switch url_for* onto macros Write macros around url_for* Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: webapp repology-webapp, repology web application Effort: intermediate A class or a huge function needs to be written Priority: soon Should be done in a few days Type: infrastructure Internal development of base required for other features
Projects
None yet
Development

No branches or pull requests

1 participant