2

In my Sinatra/Padrino App I have

require 'sass'
require 'coffee-script'

# Routes to COFFEE-JS and SCSS-CSS
get '/javascripts/:name.js' do
  content_type 'text/javascript', charset: 'utf-8'
  coffee :"../../public/javascripts/coffee/#{params[:name]}"
end

get '/stylesheets/:name.css' do
  content_type 'text/css', charset: 'utf-8'
  scss :"../../public/stylesheets/scss/#{params[:name]}"
end

I want to know, where I can find definitions of methods coffee and scss. I want to learn source code of this methods

the-teacher
  • 589
  • 8
  • 19

2 Answers2

0

Usually the gem authors place links to the source in rubygems home page

https://rubygems.org/gems/<gem_name>

for your mentioned gems the source can be found

https://github.com/josh/ruby-coffee-script

and

https://github.com/nex3/sass

Hugo
  • 12,334
  • 6
  • 30
  • 36