Literate CoffeeScript support #173

wants to merge 5 commits into


None yet
4 participants

skalee commented Feb 28, 2013

Literate CoffeeScript has been introduced in version 1.5.0 of CoffeeScript.


judofyr commented Feb 28, 2013

Thanks for the pull request, but this is going to have to wait until 2.0.

skalee commented Feb 28, 2013

OK then…

So for anyone who can't wait to have Literate CoffeeScript in Rails' AssetPipeline:

  1. Require tilt in :assets group in Gemfile explicitly pointing to my repository
  2. Add following initializer:
module Sprockets
  register_engine '.litcoffee', Tilt::CoffeeScriptTemplate::Literate

Just so other people know specifically what to put in their Gemfile:

group :assets do
  gem 'tilt', github: 'skalee/tilt', branch: 'literate-coffee-script-support'

Edited: To reflect the branch info as @skalee mentions below.

@wulftone wulftone referenced this pull request in sstephenson/sprockets Mar 15, 2013


Support for litcoffee, Literate coffee-script? #420

skalee added some commits Feb 28, 2013

Cleanup CoffeeScript tests
Make them DRY before introducing tests for literate CoffeeScript
handler, extract template renderer class to instance variable.
Most of CoffeeScript tests extracted to module.
They will be shared with literate CoffeeScript tests.

skalee commented Mar 19, 2013

@wulftone Because I'm going to rebase that branch from time to time, you might want to refer to branch, not specific commit:

group :assets do
  gem 'tilt', github: 'skalee/tilt', branch: 'literate-coffee-script-support'

@skalee @judofyr Ping! Is this any closer to getting merged into master? Anything I could help with?

@judofyr judofyr modified the milestones: 2.1, 2.0.2 Jul 7, 2015

@judofyr judofyr added the planned label Jul 7, 2015


judofyr commented Jul 7, 2015

Merged in d01b743. Thanks for the patch!

@judofyr judofyr closed this Jul 7, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment