This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 3899fde2123baca5983c63be07b0ebf003173279
tree 3a88444ed1d2338bc175e6df90ef225b20f7f28b
parent f46cf68186330058cc20b5a8ca5a8449c6868c5b
tree 3a88444ed1d2338bc175e6df90ef225b20f7f28b
parent f46cf68186330058cc20b5a8ca5a8449c6868c5b
shoebox /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
MIT-LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
app/ | ||
| |
config/ | ||
| |
init.rb | ||
| |
lib/ | ||
| |
spec/ | ||
| |
tasks/ | Tue May 19 14:48:36 -0700 2009 |
README.rdoc
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









