Function silkenweb_parse::html_to_tokens
source · pub fn html_to_tokens(dom_type: TokenStream, html: &str) -> Vec<TokenStream>
Expand description
Convert an HTML fragment to Silkenweb node expressions.
This is for writing your own proc macros to parse HTML fragments at compile time. See the module documentation for details about the parsing.
The resulting TokenStream
s are expressions with type
Node
. The Dom
type
is left unspecified, so may need to be specified if it can’t be determined
with type inference.