Elm-0.1.1.6: The Elm compiler and server.

Safe HaskellSafe-Infered

Language.Elm

Synopsis

Documentation

compileToHtml :: String -> String -> String -> HtmlSource

The compileToHtml function takes three string arguments: the location of the Elm runtime (elm-mini.js), the title to be used in the resulting HTML page, and the Elm source code. For example,

 compileToHtml "/elm-mini.js" "Hello, World!" "main = plainText \"Hello, World!\""