Permalink
Browse files

options not used yet

  • Loading branch information...
1 parent 61a5714 commit 22096e3bcb9009f745847343bf106682bc56ca8f S. Brent Faulkner committed Apr 29, 2009
Showing with 1 addition and 2 deletions.
  1. +0 −2 README.rdoc
  2. +1 −0 lib/sinatra/markaby.rb
View
2 README.rdoc
@@ -13,8 +13,6 @@ using markaby templates.
require 'sinatra'
require 'sinatra/markaby'
- set :markaby, { :page_layout => :landscape }
-
get '/' do
markaby :template
end
View
1 lib/sinatra/markaby.rb
@@ -7,6 +7,7 @@ module Markaby
# Takes the name of a template to render as a Symbol and returns a String with the rendered output.
#
# Options for markaby may be specified in Sinatra using set :markaby, { ... }
+ # TODO: the options aren't actually used yet
def markaby(template=nil, options={}, locals = {}, &block)
options, template = template, nil if template.is_a?(Hash)
template = lambda { block } if template.nil?

0 comments on commit 22096e3

Please sign in to comment.