Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

version 0.5.2

  • Loading branch information...
commit df8f9941a52c3fa9e2f80166a0c19df4a85b1760 1 parent 5b2888e
@minad minad authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.