Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boxdot/elmit


https://github.com/boxdot/elmit

Last synced: 30 days ago
JSON representation

Awesome Lists containing this project

README

        

_Work in progress!_

# Elmit

A simple converter from to Html (with a Handlebars flavour) to Elm.

## Build

```(bash)
make init
make
```

This will install dependencies (`jison` and `elm-console`), compile the parser and build `elmit.js` in the `build` directory.

## Usage

```(bash)
$ cat<

Hello



lorem ipsum

EOF
```

Output
```(elm)
-- compiled from html
module ToDo where

import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)

view =
[ div
[ class "main"
]
[ h1 []
[ text "Hello"
]
, p
[ class "body"
]
[ text "lorem ipsum"
]
]
]

```