View Source Coffee (coffee_compiler v0.1.5)

Compiles CoffeeScript into Javascript using Rollup

Currently supported options

  • assets_path string - the path to look for files if @import derectives are used. Default: "assets"

Link to this section Summary

Functions

Compiles a string of CSS/SCSS/Sass into CSS string

Link to this section Functions

Link to this function

compile(source, opts \\ [])

View Source

Compiles a string of CSS/SCSS/Sass into CSS string

Examples

iex> Coffee.compile("assets/app.coffee")
{:ok, "console.log("Hello!");\n"}

# With options
iex> Coffee.compile("../javascripts/app.coffee", assets_path: "../javascripts"})
{:ok, "console.log("Hello!");\n"}