Skip to content

GetShopTV/miso-from-html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 87.8%
  • HTML 12.2%