Barista - 在Rails和Rack簡單、透明的使用CoffeeScript
Barista是一組工具,方便在Rails 3, Rails 2 和 Rack 應用中使用CoffeeScript。你可以把它想象成類似于Compass,但使用CoffeeScript代替Sass。Barista還能夠實現:
- Automatic support for a
:coffeescript
filter in Haml (when Haml is loaded before Barista) — automatically converting inline CoffeeScript to JavaScript for you. - Where possible, support for
coffeescript_include_tag
andcoffeescript_tag
. - When possible, instead of pre-compiling in development and test modes, Barista will embed CoffeeScript in the page for you.
- Support for Heroku via therubyracer-heroku and either pre-compiled JS or, optionally, a lightweight Rack app that generates on request. </ul>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!