Skip to content

Commit

Permalink
Trying to make this look legitimate
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Oct 16, 2009
1 parent b57a2b8 commit 906141d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 9 deletions.
22 changes: 22 additions & 0 deletions LICENSE
@@ -0,0 +1,22 @@
Copyright (c) 2009, Pedro Belo, Nick Quaranto

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
35 changes: 26 additions & 9 deletions README.textile
@@ -1,6 +1,6 @@
h1. hassle
h1. Hassle

Making "SASS":http://sass-lang.com/ less of a hassle on read only filesystems (like "Heroku":http://heroku.com!)
Making "SASS":http://sass-lang.com/ less of a hassle on read only filesystems. (like "Heroku":http://heroku.com)

h2. usage

Expand All @@ -25,7 +25,7 @@ $ tree
Include in your views with:

<pre>
<link href="/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
</pre>

Hassle will look at the default sass directory (@public/stylesheets/sass@) and other input directories given in @Sass::Plugin.options[:template_location]@. CSS files are then compiled into @tmp/@ one directory higher than where you specified. Here's a small example of customization:
Expand Down Expand Up @@ -53,24 +53,24 @@ $ tree
Include in your views with:

<pre>
<link href="/css/screen.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/css/screen.css" media="screen" rel="stylesheet" type="text/css" />
</pre>

h2. integration
h2. Integration

Here's how to integrate it with your favorite web framework:

h3. rails
h3. Rails

For Rails: @script/plugin install git://github.com/pedro/hassle@. Done. Once you're in production mode, Hassle will kick in and prepare your SASS for all to enjoy.

h3. sinatra
h3. Sinatra

Here's a sample config.ru that's running at http://hassle-sinatra.heroku.com:
Here's a sample config.ru that's running here:"http://hassle-sinatra.heroku.com":

<pre>
require 'sinatra'
require 'hassle/lib/hassle'
require 'hassle'
require 'haml'

get '/' do
Expand All @@ -86,3 +86,20 @@ end
use Hassle
run Sinatra::Application
</pre>

And its wonderful SASS file:

<pre>
$ cat public/stylesheets/sass/application.sass
h1
font-size: 11em
color: purple
</pre>

h2. Bugs

Found some problems? Post 'em in "Issues":http://github.com/pedro/hassle/issues.

h2. License

Hassle uses the MIT license. Please check the LICENSE file for more details.

0 comments on commit 906141d

Please sign in to comment.