Skip to content
This repository
tree: 03e333959a

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec Add TiltFilter November 27, 2011
Octocat-spinner-32 .travis.yml could probably skip filters that won't work for these platforms November 16, 2012
Octocat-spinner-32 .yardopts Add a README. November 29, 2011
Octocat-spinner-32 Gemfile remove deps November 16, 2012
Octocat-spinner-32 README.markdown
Octocat-spinner-32 README.yard Filter list and example in readme October 26, 2012
Octocat-spinner-32 Rakefile Add #register to ProjectHelper March 24, 2012
Octocat-spinner-32 rake-pipeline-web-filters.gemspec
README.markdown

Rake::Pipeline::Web::Filters Build Status

This project contains a set of rake-pipeline filters for building web apps.

It includes these filters:

  • Cache Buster - Write a fingerprint into each file name
  • Coffescript - Convert Javascript to Coffeescript
  • GZip - Create gzip'd version of your files
  • Handlebars - Parse handlebars templates
  • IIFE - Wrap source files in immediately invoked functional expressions
  • Jade - Parse Jade templates
  • LESS - Convert LESS to CSS
  • Markdown - Convert Markdown to HTML
  • Minispade - Wrap JS files in Minispade modules
  • Neuter - Require files in a file and generate one single combined file
  • SASS - Convert SASS to CSS
  • Stylus - Styluss to CSS
  • Tilt - Pase Title templates
  • Uglify - Minify JS
  • YUI CSS - Minifiy CSS
  • YUI Javascript - Minify JS

Here's a quick example of a realistic project's Assetfile:

# Assetfile.rb
require 'rake-pipeline-web-filters'

output "site"

input "javascripts" do
  match "**/*.coffe" do
    coffeescript
  end

  match "**/*.js" do
    minispade
    concat "application.js"
    uglify
  end
end

input "stylesheets" do
  match "**/*.sass" do
    sass
  end

  match "**/*.css" do
    concat "application.css"
    yui_css
  end
end

API documentation is hosted at rubydoc.info

Something went wrong with that request. Please try again.