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

Only output t- prefix when there is a named template #109

Merged
merged 22 commits into from
Nov 25, 2019
Merged

Conversation

g105b
Copy link
Member

@g105b g105b commented Nov 14, 2019

The t- prefix allows your PHP, JavaScript or CSS to identify templated elements, but this is not at all useful when the templates do not have a name.

Internally, unnamed templates are given a name of their XPath selector. When this is output to the page, it creates a lot of unnecessary HTML and looks very messy.

Closes #95

@g105b g105b merged commit 5515ea4 into master Nov 25, 2019
@g105b g105b deleted the 95-t-prefix branch January 20, 2023 12:54
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.

Do not output .t-* class if the template has no name
1 participant