-
Notifications
You must be signed in to change notification settings - Fork 56
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
Result of SECOND call to partial from r.JavaScript(...) will be escaped content!? #106
Comments
Renderer JavaScript:
But not much as described! Yes we are in a JS template, and partial calls here must be escaped, But another partial in HTML partials must be render with HTML ones not JavaScript... |
I am not 100% sure but the behavior described in the document was changed at v0.13.3 by gobuffalo/buffalo#1433. There is not much description on the PR, but the PR removed the buffalo-specific helper function (link [1]) Basically, the policy on Javascript and/or HTML escaping is somewhat tricky since there is a trade-off between convenience and security concerns (such as script injection) even though the You can also find related discussions or requests on the following issues or PRs: |
Closing it, but please feel free to reopen it if you need more discussion on this or have any ideas. |
As what described here Naming partial example, We able to use partial as below(One leve partial call):
t1.html that use partial _t1.html:
_t1.html:
That will get us:
That's good, but what I`m try to do:
t1.js
_t1.html:
_t1.form.html
And in action (GO)(templateing and rendering with plush)
get me somthing like this:
AND what expected:
Did I missed something, or can be it done?
The text was updated successfully, but these errors were encountered: