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

Count template tags during static analysis #97

Merged
merged 2 commits into from
Dec 23, 2022
Merged

Count template tags during static analysis #97

merged 2 commits into from
Dec 23, 2022

Conversation

jg-rp
Copy link
Owner

@jg-rp jg-rp commented Dec 22, 2022

This pull requests adds a tags property to TemplateAnalysis. When a template is analyzed using BoundTemplate.analyze() or BoundTemplate.analyze_async(), tag names will be counted too.

Note that internal tags consumed by their enclosing tag during the parsing of a template, like elsif and when, are not counted.

See #94

@jg-rp jg-rp merged commit a4b9a6b into main Dec 23, 2022
@jg-rp jg-rp deleted the count-tags branch December 23, 2022 08:09
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.

1 participant