benofsky-bolt 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- 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"
|