benofsky-bolt 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bolt/page.rb +6 -1
- metadata +2 -2
data/lib/bolt/page.rb
CHANGED
@@ -18,7 +18,12 @@ def render(view, options = {})
|
|
18
18
|
require options[:engine_require] || options[:engine]
|
19
19
|
|
20
20
|
@content = render_view(view_as_string(view, options[:engine]), options[:engine])
|
21
|
-
|
21
|
+
|
22
|
+
if options[:template]
|
23
|
+
return render_view(view_as_string(options[:template]), options[:engine])
|
24
|
+
else
|
25
|
+
return @content
|
26
|
+
end
|
22
27
|
end
|
23
28
|
|
24
29
|
# Writes a file containing whatever is returned from a supplied block
|