winton/stasis — pull request #52 by bernerdschaefer (2012-04-03 10:32:33+00:00)
Title: Remove Dir.chdir calls from Stasis and Stasis::Controller

This wreaks havoc if you are embedding Stasis for HTML generation within a larger generation process, e.g., generating static blog entries like:

```ruby
Article.all.each do |article|
stasis = Stasis.new("templates/", "public/articles/#{article.id}")
stasis.render("article.html.haml", params: { article: article })
end
```

This will fail on the second iteration, since the current directory will now be "templates/"!

Having removed the calls to chdir, all the specs continue to pass, as well as my own generator specs. Is there a reason why this might break something else?