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

Allow paths to start with :: #393

Merged
merged 5 commits into from
Dec 2, 2020
Merged

Allow paths to start with :: #393

merged 5 commits into from
Dec 2, 2020

Conversation

vallentin
Copy link
Collaborator

Fixes #331

I wanted to avoid changing Path and PathCall and the parameters of the visit functions. So instead I decided to just prepend "::" to the path parts Vec. If you'd rather have I add a bool to Path and PathCall I can do that instead.

This does not introduce any breaking changes.

Copy link
Collaborator

@djc djc left a comment

Choose a reason for hiding this comment

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

Nice! I think there's a simpler way to solve this...

askama_shared/src/parser.rs Outdated Show resolved Hide resolved
@vallentin
Copy link
Collaborator Author

@djc can I write to you on Twitter, or do you have another better way for sending you a direct message?

@djc
Copy link
Collaborator

djc commented Dec 2, 2020

I'm everywhere! Twitter is fine, direct email, Tokio or Rust Discord, Askama Gitter, Mozilla Matrix, Rust Zulip... pick your poison.

@vallentin
Copy link
Collaborator Author

Alright, I'll send you a message in a bit. Just finishing up resolving #377.

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.

Allow paths to start with ::
2 participants