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

Qute: implement a shortcut to access list element by index #11275

Closed
mkouba opened this issue Aug 7, 2020 · 0 comments · Fixed by #11284
Closed

Qute: implement a shortcut to access list element by index #11275

mkouba opened this issue Aug 7, 2020 · 0 comments · Fixed by #11284
Labels
area/qute The template engine kind/enhancement New feature or request
Milestone

Comments

@mkouba
Copy link
Contributor

mkouba commented Aug 7, 2020

Support expressions like {list.0} and {list[1]}.

IMPL NOTE: This could be easily implemented by a template extension method. However, we should add @TemplateExtention#matchRegex() so that we could match integers because @TemplateExtention#matchName="*" effectively disables all type-safe checks.

@mkouba mkouba added the kind/enhancement New feature or request label Aug 7, 2020
@quarkusbot quarkusbot added the area/qute The template engine label Aug 7, 2020
@mkouba mkouba added this to the 1.8.0 - master milestone Aug 7, 2020
mkouba added a commit to mkouba/quarkus that referenced this issue Aug 7, 2020
- also implement a shortcut to access List elements by index
- resolves quarkusio#11275
mkouba added a commit to mkouba/quarkus that referenced this issue Aug 7, 2020
- also implement a shortcut to access List elements by index
- resolves quarkusio#11275
mkouba added a commit to mkouba/quarkus that referenced this issue Aug 7, 2020
- also implement a shortcut to access List elements by index
- resolves quarkusio#11275
mkouba added a commit to mkouba/quarkus that referenced this issue Aug 10, 2020
- also implement a shortcut to access List elements by index
- resolves quarkusio#11275
mkouba added a commit to mkouba/quarkus that referenced this issue Aug 10, 2020
- also implement a shortcut to access List elements by index
- resolves quarkusio#11275
@gsmet gsmet modified the milestones: 1.8.0 - master, 1.7.1.Final Aug 24, 2020
gsmet pushed a commit to gsmet/quarkus that referenced this issue Aug 24, 2020
- also implement a shortcut to access List elements by index
- resolves quarkusio#11275
gsmet pushed a commit to gsmet/quarkus that referenced this issue Aug 24, 2020
- also implement a shortcut to access List elements by index
- resolves quarkusio#11275
gsmet pushed a commit to gsmet/quarkus that referenced this issue Aug 25, 2020
- also implement a shortcut to access List elements by index
- resolves quarkusio#11275
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qute The template engine kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants