You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to populate an input inside a form, with data coming from the handler, and not from the user.
But the problem is that when I declare the html property as an string, and bind it to the variable inside the html, everything goes wrong, and the output gives only a string with some extra double quotes at the beginning, and the rest of the output is broken.
I tried to escape the " in the string, but this doesnt work.
My theory is that this comes from the parser from Plush, but this is only a personal theory.
The text was updated successfully, but these errors were encountered:
suppadeliux
changed the title
Plush returns wrong string when <%= %> is used in template
Double-quoted string with space is not correctly handled in template with <%= %>
Feb 24, 2020
suppadeliux
changed the title
Double-quoted string with space is not correctly handled in template with <%= %>
Double-quoted string with space is not correctly handled in template
Feb 24, 2020
Not sure but I confirmed plush worked fine with the same situation and buffalo also does its job properly.
The only think I couldn't imagine is this part: MyOwnContext(c).REngine.HTML("form.html") What is your own context? I just guess that the answer may be inside your own context or REngine.
Just guessing. Please reopen the issue if you still have this issue or some more information to help the investigation.
I want to populate an input inside a form, with data coming from the handler, and not from the user.
But the problem is that when I declare the html property as an string, and bind it to the variable inside the html, everything goes wrong, and the output gives only a string with some extra double quotes at the beginning, and the rest of the output is broken.
I tried to escape the " in the string, but this doesnt work.
My theory is that this comes from the parser from Plush, but this is only a personal theory.
In example.go
In form.html
The Final output inside the input:
Does someone have the same problem when testing the same code.?
Thank you for all your answers!
go.sum
go.mod
The text was updated successfully, but these errors were encountered: