Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 tasks
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
README.rdoc

UNMAINTAINED

I have abandoned this project in favor of github.com/ddollar/asset-resource

Shoebox allows you to keep your scripts and styles as first-class citizens in your Rails application.

Shoebox also helps you separate script and style logic down to controller-level granularity.

Shoebox can optionally minify both CSS and Javascript.

Installation

# install the plugin
$ script/plugin install git://github.com/ddollar/shoebox.git

Setup

# css
# can use media types in the filename like below
app/
  styles/
    application/
      test.css
      test.screen.css
      test.sass
      test.less
    users/
      more.css
      more.print.css

 # javascript
 app/
   scripts/
     application/
       global.js
     users/
       flashy.js

Usage

# views/layouts/application.html.erb
<head>
  <%= shoebox_scripts        %>
  <%= shoebox_styles         %> # defaults to screen
  <%= shoebox_styles(:print) %>
</head>

# config/environments/production.rb
Shoebox.config.cache  = true
Shoebox.config.minify = true

Author

David Dollar
ddollar@gmail.com
@ddollar
Something went wrong with that request. Please try again.