-
Notifications
You must be signed in to change notification settings - Fork 4
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
Emulate SafeString somehow #27
Comments
Sure. A simple example from the handlebars docs:
And a probable use for us, based on
(This is a bit extreme, but an extension of the Edit: I can hear @charleso's small scream of horror from here. |
Something I don't quite get about either one - why not just call it with an unescaped mustache, like Value doesn't have a JSON instance anymore. You'd probably use the ToJSON instances of the boxed types instead ( |
Fair point about |
@damncabbage don't need this anymore, do we? |
In Handlebars, SafeStrings are values you can construct that don't get escaped when they appear in a mustache. Apparently we might need them
It's easy enough to add it to
Value
but will need to rejigBMX.Eval
a little bit, as escaping happens after the type has been erased@damncabbage if you could provide an example of how we'd be using them (generating them from a helper, I presume) that'd help
The text was updated successfully, but these errors were encountered: