tools/html_transform

Functions

pub fn main() -> Nil

A very fragile script to transform a file of html tags into sprocket element/attribute functions

<a>
<animate>
<animateMotion>
<animateTransform>
...

Example:

gleam run -m tools/html_transform – –template=elements src/sprocket/html/svg/source/elements

Will create a file src/sprocket/html/svg.gleam

pub fn snake_case(input: String) -> String
Search Document