benofsky-bolt 0.3.1 → 0.3.2
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/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
|