flame 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flame/render.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f81c07029f6cb10c2b0fd99e23b8e08e36327cb
|
4
|
+
data.tar.gz: ff940fbc20f94bef959dfa0bbacf036385b1884c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 363e0851579c64bece8a987d28f150cb5a3e87a662618a496ce3e8222366c2b7d7f0a4b9ba469510c5a92bd66ee65e24918014eefe611183ef94e4fe06da794f
|
7
|
+
data.tar.gz: 94e8cb0c8b21513b1069450b5accda7a4ee3e9548a8dc8c79cc92390b72543a92b5289f8e820609cab62d8d084736e1e7cab1e20eb93bbfbbbb6a9e985c00f72
|
data/lib/flame/render.rb
CHANGED
@@ -42,6 +42,7 @@ module Flame
|
|
42
42
|
def layout_render(layout, result)
|
43
43
|
layout_filename = find_file(layout)
|
44
44
|
## Compile layout to hash
|
45
|
+
return result unless layout_filename
|
45
46
|
@tilts[layout_filename] ||= Tilt.new(layout_filename)
|
46
47
|
@tilts[layout_filename] ? @tilts[layout_filename].render { result } : result
|
47
48
|
end
|