-
Notifications
You must be signed in to change notification settings - Fork 57
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
Encoded HTML ssr/browser rendering #84
Comments
this is a really useful snippet! thanks for sharing ✨ just incase anyone takes this for a spin with |
brilliant! spent a while digging into this issue tonight until I got down to pelo & saw what was happening. this works perfectly, should def go on the working with html section of the wiki :) |
Would this be worth exporting as a bundled-but-separate utility function? |
Yeah, think so - something like `require('bel/unescape')` or `bel/raw`
might make sense I think. Having it be a completely separate module might
make it trickier to find / adds more deps to projects which is not great
…On Fri, Aug 4, 2017 at 7:14 PM Bret Comnes ***@***.***> wrote:
Would this be worth exporting as a bundled-but-separate utility function?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#84 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACWlelu3VUSPqOl5tOw8EIikwFNr6Gckks5sU1DVgaJpZM4OV0mi>
.
|
@yoshuawuyts Yeah, echoing that thought—was discussing this with @louiscenter as I’m using this method within several projects right now. Keeping it within the bel package but separate from the core would be a great move. I could make a PR for it? Also, a fan of |
Think we all agree then. PR would be grand!
…On Mon, Aug 7, 2017, 15:29 Jon-Kyle ***@***.***> wrote:
@yoshuawuyts <https://github.com/yoshuawuyts> Yeah, echoing that
thought—was discussing this with @louiscenter
<https://github.com/louiscenter> as I’m using this method within several
projects right now. Keeping it within the bel package but separate from the
core would be a great move. I could make a PR for it?
Also, pretty fan of bel/raw. 3/3.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#84 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACWlelKnLA7u8-tnY3HYBZtMBVmYQNytks5sVxE4gaJpZM4OV0mi>
.
|
Really enjoying the new SSR capabilities with bel! I wanted to render some Markdown output on the server recently, and with @yoshuawuyts’s help was able to get this working in both the browser and SSR by doing something like this:
And a little interactive example using Glitch. Super awesome, but a little verbose. Maybe there is a way to do this using a single unified method? #42
The text was updated successfully, but these errors were encountered: