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
import play.twirl.api.StringInterpolation val test_seq = Seq(10,20,30) def test_div(i: Int) = html"<div>$i</div>" html""" <ul> <li>${test_div(-1)}</li> ${test_seq.map(i => <li>{test_div(i)}</li>)} </ul> """
outputs
<ul> <li><div>-1</div></li> <li><div>10</div></li><li><div>20</div></li><li><div>30</div></li> </ul>
While I expects
<ul> <li><div>-1</div></li> <li><div>10</div></li><li><div>20</div></li><li><div>30</div></li> </ul>
I know I can do this using
val test_seq = Seq(10,20,30) def test_div(i: Int) = html"<div>$i</div>" html""" <ul> <li>${test_div(-1)}</li> ${test_seq.map(i => html"<li>${test_div(i)}</li>")} </ul> """
but I hope we could have it done without nested quoting
The text was updated successfully, but these errors were encountered:
No branches or pull requests
outputs
While I expects
I know I can do this using
but I hope we could have it done without nested quoting
The text was updated successfully, but these errors were encountered: