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.
Files changed (2) hide show
  1. data/lib/bolt/page.rb +6 -1
  2. 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
- render_view(view_as_string(options[:template]), options[:engine]) unless options[:template].empty?
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben McRedmond