Skip to content
Browse files

Added Sass information to documentation.

  • Loading branch information...
1 parent 2baa78d commit 4144ac1a8b9d34625bf28f93a68720a1d326f83f @nmeans nmeans committed Apr 8, 2008
Showing with 13 additions and 1 deletion.
  1. +13 −1 README.rdoc
View
14 README.rdoc
@@ -90,14 +90,22 @@ All views are looked up in:
== Templates
-=== Haml/Sass
+=== Haml
get '/' do
haml :index
end
This will render <tt>./views/index.haml</tt>
+=== Sass
+ get '/stylesheet.css' do
+ header 'Content-Type' => 'text/css; charset=utf-8'
+ sass :stylesheet
+ end
+
+This will render <tt>./views/stylesheet.sass</tt>
+
=== Inline
get '/' do
@@ -164,6 +172,10 @@ Try it!
This works like Haml except you use <tt>erb</tt> instead of <tt>haml</tt>
+=== Sass
+
+This works like Haml except you use <tt>sass</tt> instead of <tt>haml</tt>. It's also a good idea to add <tt>header 'Content-Type' => 'text/css; charset=utf-8'</tt> before your call to <tt>sass</tt> so Sinatra returns the proper content type header with the file.
+
=== Builder
See Sinatra::Builder

0 comments on commit 4144ac1

Please sign in to comment.
Something went wrong with that request. Please try again.