fifty 0.1.0 → 0.1.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/lib/fifty.rb +7 -3
- metadata +1 -1
data/lib/fifty.rb
CHANGED
@@ -6,7 +6,7 @@ module Fifty
|
|
6
6
|
require 'json'
|
7
7
|
|
8
8
|
# Version of the gem.
|
9
|
-
VERSION = '0.1.
|
9
|
+
VERSION = '0.1.1'
|
10
10
|
|
11
11
|
# Class-level variables.
|
12
12
|
|
@@ -289,7 +289,7 @@ module Fifty
|
|
289
289
|
|
290
290
|
# Escape double and triple-mustaches.
|
291
291
|
def self.escape_hbs(partial)
|
292
|
-
|
292
|
+
2.times do
|
293
293
|
partial.gsub!("{{", "{%{")
|
294
294
|
partial.gsub!("}}", "}%}")
|
295
295
|
end
|
@@ -298,7 +298,11 @@ module Fifty
|
|
298
298
|
|
299
299
|
# Unescape double and triple-mustaches.
|
300
300
|
def self.unescape_hbs(html)
|
301
|
-
|
301
|
+
2.times do
|
302
|
+
html.gsub!("{%{", "{{")
|
303
|
+
html.gsub!("}%}", "}}")
|
304
|
+
end
|
305
|
+
html
|
302
306
|
end
|
303
307
|
|
304
308
|
# * Helper-related methods * #
|