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.
- data/lib/bolt/page.rb +2 -1
- 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]
|
|
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"
|