zafu 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/lib/zafu/info.rb +1 -1
- data/lib/zafu/process/ruby_less_processing.rb +5 -15
- data/zafu.gemspec +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/zafu/info.rb
CHANGED
@@ -68,21 +68,11 @@ module Zafu
|
|
68
68
|
def rubyless_render(method, params)
|
69
69
|
# We need to set this here because we cannot pass options to RubyLess or get them back
|
70
70
|
# when we evaluate the method to see if we can use blocks as arguments.
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
if !@params.empty?
|
77
|
-
# try to use r_show without using params as arguments
|
78
|
-
params[:eval] = @method
|
79
|
-
r_show
|
80
|
-
else
|
81
|
-
raise err
|
82
|
-
end
|
83
|
-
ensure
|
84
|
-
@rendering_block_owner = false
|
85
|
-
end
|
71
|
+
@rendering_block_owner = true
|
72
|
+
code = method_with_arguments(method, params)
|
73
|
+
rubyless_expand RubyLess.translate(self, code)
|
74
|
+
ensure
|
75
|
+
@rendering_block_owner = false
|
86
76
|
end
|
87
77
|
|
88
78
|
def set_markup_attr(markup, key, value)
|
data/zafu.gemspec
CHANGED