Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Stagecoach is a Rack asset server that supports concatenation and templating via Tilt

tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

Parcel

Parcel is a Rack asset server that supports concatenation and templating via Tilt.

Usage

require 'parcel'
require 'erb'
require 'less'

Foo::Application.routes.draw do
  match 'javascripts/all.js' =>
    Parcel::Server.new(Rails.root.join("public/javascripts/*"))
  match 'stylesheets/all.css' =>
    Parcel::Server.new(Rails.root.join("public/stylesheets/*"))
end

# public/javascripts/
# |- application.js
# |- people.js.erb
#
# public/stylesheets/
# |- application.css
# |- people.css.erb
# |- messages.css.less
Something went wrong with that request. Please try again.