lib/bolt/page.rb in benofsky-bolt-0.3.2 vs lib/bolt/page.rb in benofsky-bolt-0.3.3

- old
+ new

@@ -9,10 +9,11 @@ # Loads the specified view into instance variable @content # which is then inserted into a template def render(view, options = {}) raise ArgumentError, "Please specify a view to render" if view.empty? - options[:template] ||= $config_file['primary_template'] + # We have to use nil? here because options[:template] can be false + options[:template] = $config_file['primary_template'] if options[:template].nil? options[:engine] ||= "haml" raise ArgumentError, ":engine cannot be view" if options[:engine] == "view" require options[:engine_require] || options[:engine] \ No newline at end of file