-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
StringFrag.toString doesn't behave as expected #191
Comments
Actually, I would prefer it if that were the expected behaviour, i.e. But you are right, right now the documentation states that |
Yeah let's just make its |
If that's the case, I would then change the documentation to use .render instead of .toString Otherwise it's confusing. The thing is that .toString is implemented as some sort of .render for ALMOST all the tags, but not this one |
.toString doesn't produce HTML for StringFrag though. |
the only change I'm proposing here is to have StringFrag returning its content rather than a default toString implementation because I am pretty sure this is not what ppl are expecting there. |
Changing the documentation to tell people to use |
sounds good to me! |
if you use .toString to render the tags (instead of .render) StringFrag doesn't behave as expected.
I.e. StringFrag("hello world").toString shouldBe "hello world"
but actually
StringFrag("hello world").toString is "StringFrag(hello world)"
The text was updated successfully, but these errors were encountered: