Compile Elm scripts and include them in a Jekyll site.
- Add this line to your application's Gemfile
gem 'jekyll_elm'
. - And then execute
bundle
. - Add the following to your
_config.yml
:
plugins:
- jekyll_elm
Simple create a new post/draft/page/whatever with the extension .elm
. It will
be detected and compiled.
You can also create the .elm file inside the assets/elm
directory and tell the plugin to output js files.
Just add to your _config.yml
:
jekyll_elm:
output_file_extension: ".js"
destination_folder: "assets/js/elm"
- Fork it ( https://github.com/[my-github-username]/jekyll_elm/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request