benofsky-bolt 0.3.2 → 0.3.3

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 +2 -1
  2. metadata +2 -2
data/lib/bolt/page.rb CHANGED
@@ -11,7 +11,8 @@
11
11
  def render(view, options = {})
12
12
  raise ArgumentError, "Please specify a view to render" if view.empty?
13
13
 
14
- options[:template] ||= $config_file['primary_template']
14
+ # We have to use nil? here because options[:template] can be false
15
+ options[:template] = $config_file['primary_template'] if options[:template].nil?
15
16
  options[:engine] ||= "haml"
16
17
 
17
18
  raise ArgumentError, ":engine cannot be view" if options[:engine] == "view"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben McRedmond