Macrosยง
- generate_
snippet - This macro turns rust code snippets into syntax highlighted html.
If you have the html feature enabled it will directly return a
yew::Html
type using a component calledRawHtml
in order to turn a string into html. This is needed because yew does not yet support turning a string into html In order for this to work, this component needs to be created as follows: