We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
data-sly-test had been known as the only way to assign a value to an identifier for a long time until data-sly-set was introduced for that purpose.
data-sly-test
data-sly-set
Valid use of data-sly-test:
<div class="foo" data-sly-test=${model.renderCondition}> <p>${model.text}</p> </div>
Invalid use of data-sly-test
<sly data-sly-test.profile="${model.profile}" /> <div class="foo"> Name: ${profile.firstName}, Surname: ${profile.secondName} </div>
Instead, data-sly-set should be used
<div class="foo" data-sly-set.profile="${model.profile}"> Name: ${profile.firstName}, Surname: ${profile.secondName} </div>
When data-sly-test is actually used as a test condition, as well as a way to store a value?
<div class="foo" data-sly-test.profile="${model.profile}"> Name: ${profile.firstName}, Surname: ${profile.secondName} </div>
To be discussed. This is closely related to the existing rule HTL-4 introduced in #131
The text was updated successfully, but these errors were encountered:
No branches or pull requests
data-sly-test
had been known as the only way to assign a value to an identifier for a long time untildata-sly-set
was introduced for that purpose.Valid use of
data-sly-test
:Invalid use of
data-sly-test
Instead,
data-sly-set
should be usedException
When
data-sly-test
is actually used as a test condition, as well as a way to store a value?To be discussed. This is closely related to the existing rule HTL-4 introduced in #131
The text was updated successfully, but these errors were encountered: