Mojolicious::Plugin::AssetPack::Pipe::ElmLang - process .elm files
0.4.2
Mojolicious::Plugin::AssetPack::Pipe::ElmLang will process http://elm-lang.org/ files into JavaScript.
This module require the elm-make program to be installed. elm-make will be automatically installed using https://www.npmjs.com/ unless already installed.
elm-make
use lib '../lib'; use Mojolicious::Lite; plugin 'AssetPack' => {pipes => ['ElmLang']}; app->asset->process('app.js' => 'test.elm'); # Set up the mojo lite application and start it get '/' => 'index'; app->start; __DATA__ @@ index.html.ep <!DOCTYPE HTML> <html> <head> <title>Test</title> %= asset 'app.js'; </head> <body> <script type="text/javascript"> Elm.Main.fullscreen() </script> </body> </html>
Mojolicious::Plugin::AssetPack.
To install Mojolicious::Plugin::AssetPack::Pipe::ElmLang, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::AssetPack::Pipe::ElmLang
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::AssetPack::Pipe::ElmLang
For more information on module installation, please visit the detailed CPAN module installation guide.