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
Thank you for your hard work with Svelte! I heard about it in a tweet, and I got incredibly excited when I read the guide!
A big reason I moved from Backbone.js to React was because of the ability to use all the power of JS instead of templates. I know how cumbersome JSX is to implement, and that it would be outside the scope of your great idea with this project, but what do you think about the idea of using a function that returns a string representing the HTML as a complement to a template?
Not a silly suggestion at all – it's definitely useful to be able to inject arbitrary HTML. Svelte is primarily modelled after Ractive, which solves this problem with the triple-stache:
<divclass='arbitrary-html'>
{{{html}}}
</div>
html could be a data property, or a computed property, or an inline expression, so you'd have complete freedom about what gets rendered. It's not currently implemented, but it will be. I've opened an issue on the main repo – sveltejs/svelte#35.
Thank you for your hard work with Svelte! I heard about it in a tweet, and I got incredibly excited when I read the guide!
A big reason I moved from Backbone.js to React was because of the ability to use all the power of JS instead of templates. I know how cumbersome JSX is to implement, and that it would be outside the scope of your great idea with this project, but what do you think about the idea of using a function that returns a string representing the HTML as a complement to a template?
I apologize if this is a naive and silly suggestion. I would just like to hear your thoughts.
The text was updated successfully, but these errors were encountered: