Add stylus support

This commit is contained in:
Adam Krebs
2013-12-09 22:42:57 -05:00
parent 2180c11dc6
commit fc9bc8b9e1
5 changed files with 28 additions and 1 deletions

View File

@@ -598,6 +598,11 @@ module Sinatra
render :less, template, options, locals
end
def stylus(template, options={}, locals={})
options.merge! :layout => false, :default_content_type => :css
render :stylus, template, options, locals
end
def builder(template=nil, options={}, locals={}, &block)
options[:default_content_type] = :xml
render_ruby(:builder, template, options, locals, &block)