Don't call each file individually.  This "might" work:

```
Dir[file_path("*.html")].each do |page|
```