Skip to content
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

Support a sigil for safe HTML #61

Closed
the-mikedavis opened this issue Sep 26, 2018 · 3 comments
Closed

Support a sigil for safe HTML #61

the-mikedavis opened this issue Sep 26, 2018 · 3 comments

Comments

@the-mikedavis
Copy link
Contributor

the-mikedavis commented Sep 26, 2018

EEx has a sigil for doing safe HTML in your Elixir code. At first look it doesn't seem to be too interesting, but with the new LiveView coming up, it looks pretty useful.

I hate writing Eex, love writing Slime. It'd be cool to be able to write slime in the live view, and it seems to me like a sigil for this is the first step in the right direction.

(Feature request)

@doomspork
Copy link
Member

@the-mikedavis would you be open to taking a first stab at this? We'd welcome a PR 😁

@the-mikedavis
Copy link
Contributor Author

@doomspork Sure thing. I have one nagging question, though. What should the sigil be? ~S is already used pretty commonly. Either we override ~S or we choose another character like L or H. What are your thoughts on this?

@doomspork
Copy link
Member

That's a good question @the-mikedavis 🤔. @Rakoth do you have any preference? I'm leaning towards L.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants