Skip to content
Browse files

version 0.5.2

  • Loading branch information...
1 parent 5b2888e commit df8f9941a52c3fa9e2f80166a0c19df4a85b1760 @minad minad committed Sep 24, 2012
Showing with 9 additions and 2 deletions.
  1. +4 −0 CHANGES
  2. +4 −1 lib/temple/templates/tilt.rb
  3. +1 −1 lib/temple/version.rb
View
4 CHANGES
@@ -1,3 +1,7 @@
+0.5.2
+
+ * Fix the :outvar problem really
+
0.5.1
* Support Sinatra :outvar option in Tilt template
View
5 lib/temple/templates/tilt.rb
@@ -24,7 +24,10 @@ def prepare
# Overwrite option: No streaming support in Tilt
opts = {}.update(self.class.default_options).update(options).update(:file => eval_file, :streaming => false)
opts.delete(:mime_type)
- opts[:buffer] ||= opts.delete(:outvar) # Sinatra sets the :outvar option
+ outvar = opts.delete(:outvar)
+ if outvar
+ opts[:buffer] ||= outvar # Sinatra sets the :outvar option
+ end
@src = self.class.compile(data, opts)
end
View
2 lib/temple/version.rb
@@ -1,3 +1,3 @@
module Temple
- VERSION = '0.5.1'
+ VERSION = '0.5.2'
end

0 comments on commit df8f994

Please sign in to comment.
Something went wrong with that request. Please try again.