GetShopTV / miso-from-html

Generate Miso code from HTML file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

miso-from-html

A command line tool for taking a HTML file and outputting Haskell code compatible for Miso.

Example usage: stack exec miso-from-html -- --inputFile index.html --indent 2 --outputFile View.hs

Input: index.html

<body>
  <div class="hello">
    <p>Hello, World!</p>
  </div>
</body>

Output: View.hs

fn1 = body_
  []
  [ div_
    [ class_ "hello" ]
    [ p_
        []
        [ text "Hello, World!" ]
    ]
  ]

About

Generate Miso code from HTML file

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 87.8%Language:HTML 12.2%