-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
A-yew-macroArea: The yew-macro crateArea: The yew-macro cratefeature-requestA feature requestA feature request
Description
Problem
Devs would like to reuse existing templates/snippets for a lot of parts of an application.
They may try using pub const INDEX_HTML: &'static str = include_str!("../assets/templates/index.html"); and then inside html! { <div id="wrapper>{ INDEX_HTML } </div> } but all they will get is the html rendered as plain text inside the wrapper div :(
Proposed Solution
Add a special property like React's dangerouslySetInnerHTML (https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml) to VTag
EvanCarroll, Cokemonkey11, ivnsch, sadnessOjisan, gleb-chipiga and 4 moresadnessOjisan and schneiderfelipe
Metadata
Metadata
Assignees
Labels
A-yew-macroArea: The yew-macro crateArea: The yew-macro cratefeature-requestA feature requestA feature request