搜索咖啡和scss方法的源代码

时间:2012-05-22 05:51:35

标签: ruby coffeescript sinatra sass padrino

在我的Sinatra / Padrino App中我有

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

我想知道,在哪里可以找到方法咖啡 scss 的定义。我想学习这种方法的源代码

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

通常,gem作者会在rubygems主页中放置指向源代码的链接

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

对于您提到的宝石,可以找到来源

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

https://github.com/nex3/sass