creole 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/creole/template.rb +5 -4
- data/lib/creole/version.rb +1 -1
- metadata +2 -2
data/lib/creole/template.rb
CHANGED
@@ -4,10 +4,11 @@ require 'creole'
|
|
4
4
|
module Creole
|
5
5
|
class Template < Tilt::Template
|
6
6
|
def prepare
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
opts = {}
|
8
|
+
[:allowed_schemes, :extensions, :no_escape].each do |k|
|
9
|
+
opts[k] = options[k] if options[k]
|
10
|
+
end
|
11
|
+
@creole = Creole::Parser.new(data, opts)
|
11
12
|
@output = nil
|
12
13
|
end
|
13
14
|
|
data/lib/creole/version.rb
CHANGED