Skip to content

Instantly share code, notes, and snippets.

@tmichel
tmichel / elm_sprockets.rb
Last active July 29, 2017 03:38
Elm Rails 4.2 integration (Sprockets 3.x)
# Elm integration for Sprockets 3.x (Rails 4.2)
#
# Revised version of a Sprockets 3.x processor for Elm. It supports
# dependencies. One little quirk is that only .js.elm files are
# requireable in application.js.
#
# How to use it?
#
# Put this file in your config/initializers/ and create
# app/assets/javascripts/MyModule.js.elm and require it in your