fairytale 0.7.9.3 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fairytale.rb +4 -0
- metadata +1 -1
data/lib/fairytale.rb
CHANGED
@@ -29,6 +29,10 @@ module Fairytale
|
|
29
29
|
instance_variables.each { |var_symbol| instance_variable_set var_symbol, nil }
|
30
30
|
end
|
31
31
|
|
32
|
+
def before &block
|
33
|
+
block.call
|
34
|
+
end
|
35
|
+
|
32
36
|
def md file, params = {}, &block
|
33
37
|
file = "content/#{file.to_s}" if file.class == Symbol
|
34
38
|
tilt(file, params, &block)
|