Permalink
Browse files

technically we dont need this. although if data ever were really .nil…

… it would cause problems. however i discovered it was nil because of my tinkering and not because that normally happens
  • Loading branch information...
mikesmullin committed May 26, 2012
1 parent f8ea9c8 commit e9fd11cd0d320c434dd6f396117dc4fb30d4c51c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/hogan_assets/tilt.rb
View
@@ -14,7 +14,7 @@ def initialize_engine
def evaluate(scope, locals, &block)
if scope.pathname.extname == '.hamstache'
- compiled_template = Haml::Engine.new(data, @options).render unless data.nil?
+ compiled_template = Haml::Engine.new(data, @options).render
compiled_template = Hogan.compile(compiled_template)
else
compiled_template = Hogan.compile(data)

0 comments on commit e9fd11c

Please sign in to comment.