Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boxdot/elmit
https://github.com/boxdot/elmit
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/boxdot/elmit
- Owner: boxdot
- Created: 2015-10-12T08:35:55.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T20:21:08.000Z (over 8 years ago)
- Last Synced: 2024-10-10T06:37:44.368Z (about 1 month ago)
- Language: Elm
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 whereimport Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)view =
[ div
[ class "main"
]
[ h1 []
[ text "Hello"
]
, p
[ class "body"
]
[ text "lorem ipsum"
]
]
]```