Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

options not used yet

  • Loading branch information...
commit 22096e3bcb9009f745847343bf106682bc56ca8f 1 parent 61a5714
@sbfaulkner authored
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?
Please sign in to comment.
Something went wrong with that request. Please try again.