Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JRuby Wrapper for ClojureScript
branch: master

This branch is 24 commits behind yokolet:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
vendor/assets
.gitignore
Gemfile
README.md
Rakefile
clementine.gemspec

README.md

Clementine

Description

Clementine is a gem to use ClojureScript (https://github.com/clojure/clojurescript) from Ruby. Clementine is a Tilt (https://github.com/rtomayko/tilt) Template, which is available to use on Rails asset pipeline. Also, it is avilable to use in a Tilt way.

Clementine runs on Rails 3.1 and later.

Clementine supports JRuby and CRuby. When you use from CRuby, make sure java command is on your PATH.

Installation

gem install clementine

Configuration

Create clementine.rb file in your ${Rails.root}/config/initializer directory.

Examples:

Clementine.options[:optimizations] = :simple
Clementine.options[:output_dir] = "assets/javascripts"

Available options:

  KEY                VALUES
  ------------------ -----------------------
  :optimazation      :simple,:whitespace,:advanced
  :target            :nodejs
  :output_dir        directory name (:output_dir will be converted to ":output-dir")
  :output_to         file name (:output_to will be converted to ":output-to")
Something went wrong with that request. Please try again.