lastobelus-merb_global 0.0.13 → 0.0.14
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/Rakefile +1 -1
- data/lib/merb_global/helpers/haml_gettext.rb +5 -1
- data/lib/merb_global/parsers/haml_parser.rb +0 -9
- metadata +1 -1
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake/rdoctask'
|
|
4
4
|
|
5
5
|
PLUGIN = "merb_global"
|
6
6
|
NAME = "merb_global"
|
7
|
-
GEM_VERSION = "0.0.
|
7
|
+
GEM_VERSION = "0.0.14"
|
8
8
|
AUTHORS = ["Alex Coles", "Maciej Piechotka"]
|
9
9
|
EMAIL = "merb_global@googlegroups.com"
|
10
10
|
HOMEPAGE = "http://trac.ikonoklastik.com/merb_global/"
|
@@ -23,8 +23,12 @@ module Haml
|
|
23
23
|
module Localize
|
24
24
|
include ::Haml::Filters::Base
|
25
25
|
extend Merb::Global
|
26
|
+
def compile(precompiler, text)
|
27
|
+
super(precompiler, _(text.strip).gsub('%{', '#{'))
|
28
|
+
end
|
29
|
+
|
26
30
|
def render(text)
|
27
|
-
|
31
|
+
text
|
28
32
|
end
|
29
33
|
end
|
30
34
|
end
|
@@ -47,15 +47,6 @@ module Haml
|
|
47
47
|
resolve_lazy_requires
|
48
48
|
filter = self
|
49
49
|
precompiler.instance_eval do
|
50
|
-
if contains_interpolation?(text)
|
51
|
-
return if options[:suppress_eval]
|
52
|
-
|
53
|
-
push_script(<<RUBY, false)
|
54
|
-
find_and_preserve(#{filter.inspect}.render_with_options(#{unescape_interpolation(text)}, _hamlout.options))
|
55
|
-
RUBY
|
56
|
-
return
|
57
|
-
end
|
58
|
-
|
59
50
|
push_plain(text.strip)
|
60
51
|
end
|
61
52
|
end
|