Skip to content

Commit

Permalink
Don't need @view_name anymore - ditch it
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Oct 27, 2009
1 parent 39d137a commit a19c10f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/tilt.rb
Expand Up @@ -358,13 +358,7 @@ def compile!
Mustache.view_namespace = options[:namespace]

# Figure out which Mustache class to use.
@engine =
if options[:view]
@view_name = options[:view].name
options[:view]
else
Mustache.view_class(name)
end
@engine = options[:view] || Mustache.view_class(name)

# set options on the view class
options.each do |key, value|
Expand Down

0 comments on commit a19c10f

Please sign in to comment.