html_lustre_converter
Functions
pub fn convert(html: String) -> String
Convert a string of HTML in to the same document but using the Lustre HTML syntax.
The resulting code is expected to be in a module with these imports:
import lustre/element/html
import lustre/attribute.{attribute}
import lustre/element.{element, text}
If the source document contains SVGs, we need one more import from lustre/element:
import lustre/element.{element, text, svg}
If you are only using SVGs, that’s all you need to import
import lustre/element/svg