Skip to content

jhedev/django-elm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Make sure you have installed the Haskell Platform and ghc in your path.

Install Elm with:

cabal install elm

Installation

python setup.py install will compile the elm compiler and install all needed files

Now you can add elm to your INSTALLED_APPS in your django project.

Usage in templates

inline:

<script type="text/javascript" src="{{ STATIC_URL }}js/elm-runtime.js"></script>
{% load elm_compiler %}
{% elminline %}
import Mouse
main = lift asText Mouse.position
{% endelminline %}
<script type="text/javascript">Elm.fullscreen(Elm.Main)</script>

About

django template tags to compile Elm (http://elm-lang.org) code to Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published