city-watch 0.6.4 → 0.6.5
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/city_watch/util/renderer.rb +3 -3
- data/lib/version.rb +1 -1
- metadata +1 -1
|
@@ -16,7 +16,7 @@ module Renderer
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def render_bare(*tpl)
|
|
19
|
-
|
|
19
|
+
template(*tpl).result(binding)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
private
|
|
@@ -37,8 +37,8 @@ module Renderer
|
|
|
37
37
|
def template(*tpl)
|
|
38
38
|
return TemplateCache[tpl.join] if TemplateCache[tpl.join]
|
|
39
39
|
file_path = template_path(*tpl)
|
|
40
|
-
return template_content(file_path) if CityWatch.debug?
|
|
41
|
-
TemplateCache[tpl.join] ||= template_content(file_path)
|
|
40
|
+
return Erubis::FastEruby.new(template_content(file_path), filename: file_path) if CityWatch.debug?
|
|
41
|
+
TemplateCache[tpl.join] ||= Erubis::FastEruby.new(template_content(file_path), filename: file_path)
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
def view_path
|
data/lib/version.rb
CHANGED