From 4144ac1a8b9d34625bf28f93a68720a1d326f83f Mon Sep 17 00:00:00 2001 From: Nickolas Means Date: Tue, 8 Apr 2008 15:51:28 -0500 Subject: [PATCH] Added Sass information to documentation. --- README.rdoc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index d0e5c72d..4e27acd1 100644 --- a/README.rdoc +++ b/README.rdoc @@ -90,7 +90,7 @@ All views are looked up in: == Templates -=== Haml/Sass +=== Haml get '/' do haml :index @@ -98,6 +98,14 @@ All views are looked up in: This will render ./views/index.haml +=== Sass + get '/stylesheet.css' do + header 'Content-Type' => 'text/css; charset=utf-8' + sass :stylesheet + end + +This will render ./views/stylesheet.sass + === Inline get '/' do @@ -164,6 +172,10 @@ Try it! This works like Haml except you use erb instead of haml +=== Sass + +This works like Haml except you use sass instead of haml. It's also a good idea to add header 'Content-Type' => 'text/css; charset=utf-8' before your call to sass so Sinatra returns the proper content type header with the file. + === Builder See Sinatra::Builder