Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Webmachine for Ruby: Sprockets integration

branch: master

Bump to 0.2.0

latest commit cf8c0d4e0c
Lars Gierth authored
lib Bump to 0.2.0
test Reinstate rubinius build
.gitignore Get started
.travis.yml Reinstate rubinius build
Gemfile Reinstate rubinius build
README.md Disclaim my copyright
Rakefile Make it work
UNLICENSE Disclaim my copyright
webmachine-sprockets.gemspec Disclaim my copyright
README.md

webmachine-sprockets Build Status

Webmachine for Ruby: Sprockets integration

Sprockets is a Ruby library for compiling and serving web assets. It features declarative dependency management for JavaScript and CSS assets, as well as a powerful preprocessor pipeline that allows you to write assets in languages like CoffeeScript, Sass, SCSS and LESS.

github.com/sstephenson/sprockets

webmachine-ruby is a port of Webmachine, which is written in Erlang. The goal of both projects is to expose interesting parts of the HTTP protocol to your application in a declarative way. This means that you are less concerned with handling requests directly and more with describing the behavior of the resources that make up your application. Webmachine is not a web framework per se, but more of a toolkit for building HTTP-friendly applications. For example, it does not provide a templating engine or a persistence layer; those choices are up to you.

github.com/seancribbs/webmachine-ruby

Usage

require 'webmachine'
require 'webmachine/sprockets'

MyApp = Webmachine::Application.new do |app|
  sprockets = Sprockets::Environment.new
  sprockets.append_path 'app/assets/javascripts'

  resource = Webmachine::Sprockets.resource_for(sprockets)
  app.add_route [ 'assets', '*' ], resource
end

Contributing

  1. Fork at github.com/lgierth/webmachine-sprockets
  2. Create a branch and add your commits
  3. Open a Pull Request

You can also open an issue for discussion first, if you like.

Unlicense

webmachine-sprockets is free and unencumbered public domain software. For more information, see unlicense.org or the accompanying UNLICENSE file.

Something went wrong with that request. Please try again.