Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Mar 23, 2011
1 parent 77d04ad commit 75f253a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/creole/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
module Creole
class Template < Tilt::Template
def prepare
@creole = Creole::Parser.new(data,
:allowed_schemes => options[:allowed_schemes],
:extensions => options[:extensions],
:no_escape => options[:no_escape])
opts = {}
[:allowed_schemes, :extensions, :no_escape].each do |k|
opts[k] = options[k] if options[k]
end
@creole = Creole::Parser.new(data, opts)
@output = nil
end

Expand Down

0 comments on commit 75f253a

Please sign in to comment.